GoogleMapsAddressvalidationV1AddressComponent.fromJson constructor

GoogleMapsAddressvalidationV1AddressComponent.fromJson(
  1. Map json_
)

Implementation

GoogleMapsAddressvalidationV1AddressComponent.fromJson(core.Map json_)
    : this(
        componentName: json_.containsKey('componentName')
            ? GoogleMapsAddressvalidationV1ComponentName.fromJson(
                json_['componentName'] as core.Map<core.String, core.dynamic>)
            : null,
        componentType: json_.containsKey('componentType')
            ? json_['componentType'] as core.String
            : null,
        confirmationLevel: json_.containsKey('confirmationLevel')
            ? json_['confirmationLevel'] as core.String
            : null,
        inferred: json_.containsKey('inferred')
            ? json_['inferred'] as core.bool
            : null,
        replaced: json_.containsKey('replaced')
            ? json_['replaced'] as core.bool
            : null,
        spellCorrected: json_.containsKey('spellCorrected')
            ? json_['spellCorrected'] as core.bool
            : null,
        unexpected: json_.containsKey('unexpected')
            ? json_['unexpected'] as core.bool
            : null,
      );