Address.fromGraphJson constructor

Address.fromGraphJson(
  1. Map<String, dynamic> json
)

Implementation

factory Address.fromGraphJson(Map<String, dynamic> json) => Address(
      id: (json['node'] ?? const {})['id'],
      address1: (json['node'] ?? const {})['address1'],
      address2: (json['node'] ?? const {})['address2'],
      city: (json['node'] ?? const {})['city'],
      company: (json['node'] ?? const {})['company'],
      country: (json['node'] ?? const {})['country'],
      countryCode: (json['node'] ?? const {})['countryCode'],
      firstName: (json['node'] ?? const {})['firstName'],
      lastName: (json['node'] ?? const {})['lastName'],
      formattedArea: (json['node'] ?? const {})['formattedArea'],
      latitude: (json['node'] ?? const {})['latitude'],
      longitude: (json['node'] ?? const {})['longitude'],
      name: (json['node'] ?? const {})['name'],
      phone: (json['node'] ?? const {})['phone'],
      province: (json['node'] ?? const {})['province'],
      provinceCode: (json['node'] ?? const {})['provinceCode'],
      zip: (json['node'] ?? const {})['zip'],
    );