Customer.fromJson constructor
Customer.fromJson(
- Map json_
Implementation
Customer.fromJson(core.Map json_)
: this(
alternateEmail: json_.containsKey('alternateEmail')
? json_['alternateEmail'] as core.String
: null,
customerCreationTime: json_.containsKey('customerCreationTime')
? core.DateTime.parse(
json_['customerCreationTime'] as core.String)
: null,
customerDomain: json_.containsKey('customerDomain')
? json_['customerDomain'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
language: json_.containsKey('language')
? json_['language'] as core.String
: null,
phoneNumber: json_.containsKey('phoneNumber')
? json_['phoneNumber'] as core.String
: null,
postalAddress: json_.containsKey('postalAddress')
? CustomerPostalAddress.fromJson(
json_['postalAddress'] as core.Map<core.String, core.dynamic>)
: null,
);