ContactGroup.fromJson constructor

ContactGroup.fromJson(
  1. Map json_
)

Implementation

ContactGroup.fromJson(core.Map json_)
    : this(
        clientData: json_.containsKey('clientData')
            ? (json_['clientData'] as core.List)
                .map((value) => GroupClientData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        formattedName: json_.containsKey('formattedName')
            ? json_['formattedName'] as core.String
            : null,
        groupType: json_.containsKey('groupType')
            ? json_['groupType'] as core.String
            : null,
        memberCount: json_.containsKey('memberCount')
            ? json_['memberCount'] as core.int
            : null,
        memberResourceNames: json_.containsKey('memberResourceNames')
            ? (json_['memberResourceNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        metadata: json_.containsKey('metadata')
            ? ContactGroupMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        resourceName: json_.containsKey('resourceName')
            ? json_['resourceName'] as core.String
            : null,
      );