MemberSnippet.fromJson constructor

MemberSnippet.fromJson(
  1. Map json_
)

Implementation

MemberSnippet.fromJson(core.Map json_)
    : this(
        creatorChannelId: json_.containsKey('creatorChannelId')
            ? json_['creatorChannelId'] as core.String
            : null,
        memberDetails: json_.containsKey('memberDetails')
            ? ChannelProfileDetails.fromJson(
                json_['memberDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        membershipsDetails: json_.containsKey('membershipsDetails')
            ? MembershipsDetails.fromJson(json_['membershipsDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
      );