Member.fromJson constructor

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

Implementation

factory Member.fromJson(Map<String, dynamic> json) {
  final member = _$MemberFromJson(json)
    ..set(SendbirdChat().chat); // Set the singleton chat
  member.restrictionInfo = RestrictionInfo.fromJson(json);
  return member;
}