Person.fromJson constructor

Person.fromJson(
  1. Map json_
)

Implementation

Person.fromJson(core.Map json_)
    : this(
        emailAddresses: json_.containsKey('emailAddresses')
            ? (json_['emailAddresses'] as core.List)
                .map((value) => EmailAddress.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        obfuscatedId: json_.containsKey('obfuscatedId')
            ? json_['obfuscatedId'] as core.String
            : null,
        personNames: json_.containsKey('personNames')
            ? (json_['personNames'] as core.List)
                .map((value) => Name.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        phoneNumbers: json_.containsKey('phoneNumbers')
            ? (json_['phoneNumbers'] as core.List)
                .map((value) => PhoneNumber.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        photos: json_.containsKey('photos')
            ? (json_['photos'] as core.List)
                .map((value) => Photo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );