RestrictedUser.fromJson constructor

RestrictedUser.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RestrictedUser.fromJson(Map<String, dynamic> json) {
  final user = _$RestrictedUserFromJson(json)
    ..set(SendbirdChat().chat); // Set the singleton chat
  user._restrictionInfo = RestrictionInfo.fromJson(json);
  return user;
}