ReturnAddress.fromJson constructor

ReturnAddress.fromJson(
  1. Map json_
)

Implementation

ReturnAddress.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? ReturnAddressAddress.fromJson(
                json_['address'] as core.Map<core.String, core.dynamic>)
            : null,
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        phoneNumber: json_.containsKey('phoneNumber')
            ? json_['phoneNumber'] as core.String
            : null,
        returnAddressId: json_.containsKey('returnAddressId')
            ? json_['returnAddressId'] as core.String
            : null,
      );