ShopifyUser.fromGraphJson constructor
ShopifyUser.fromGraphJson(
- Map<String, dynamic> json
)
Implementation
factory ShopifyUser.fromGraphJson(Map<String, dynamic> json) => ShopifyUser(
address: Addresses.fromGraphJson(json['addresses'] ?? const {}),
defaultAddress: json['defaultAddress'] == null
? null
: Address.fromJson(json['defaultAddress']),
createdAt: json['createdAt'],
displayName: json['displayName'],
email: json['email'],
firstName: json['firstName'],
id: json['id'],
lastName: getLastName(json),
phone: json['phone'],
tags: _getTagList((json)),
lastIncompleteCheckout: json['lastIncompleteCheckout'] == null
? null
: LastIncompleteCheckout.fromJson(json['lastIncompleteCheckout']),
);