BatchCreateContactsRequest.fromJson constructor

BatchCreateContactsRequest.fromJson(
  1. Map json_
)

Implementation

BatchCreateContactsRequest.fromJson(core.Map json_)
    : this(
        contacts: json_.containsKey('contacts')
            ? (json_['contacts'] as core.List)
                .map((value) => ContactToCreate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        readMask: json_.containsKey('readMask')
            ? json_['readMask'] as core.String
            : null,
        sources: json_.containsKey('sources')
            ? (json_['sources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );