Input$FullAddressInput.fromJson constructor

Input$FullAddressInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory Input$FullAddressInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('owner')) {
    final l$owner = data['owner'];
    result$data['owner'] = l$owner == null
        ? null
        : Input$FullAddressOwnerInput.fromJson(
            (l$owner as Map<String, dynamic>));
  }
  if (data.containsKey('address')) {
    final l$address = data['address'];
    result$data['address'] = (l$address as String?);
  }
  if (data.containsKey('postCode')) {
    final l$postCode = data['postCode'];
    result$data['postCode'] = (l$postCode as String?);
  }
  if (data.containsKey('city')) {
    final l$city = data['city'];
    result$data['city'] = (l$city as String?);
  }
  if (data.containsKey('country')) {
    final l$country = data['country'];
    result$data['country'] = (l$country as String?);
  }
  if (data.containsKey('state')) {
    final l$state = data['state'];
    result$data['state'] = (l$state as String?);
  }
  if (data.containsKey('location')) {
    final l$location = data['location'];
    result$data['location'] = l$location == null
        ? null
        : Input$LonLatInput.fromJson((l$location as Map<String, dynamic>));
  }
  return Input$FullAddressInput._(result$data);
}