PhoneNumber.fromJson constructor

PhoneNumber.fromJson(
  1. Map json_
)

Implementation

PhoneNumber.fromJson(core.Map json_)
    : this(
        canonicalForm: json_.containsKey('canonicalForm')
            ? json_['canonicalForm'] as core.String
            : null,
        formattedType: json_.containsKey('formattedType')
            ? json_['formattedType'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? FieldMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );