GetAddressResult.fromMap constructor

GetAddressResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetAddressResult.fromMap(Map<String, dynamic> map) {
  return GetAddressResult(
    address: map['address'] as String,
    addressType: map['addressType'] as String,
    creationTimestamp: map['creationTimestamp'] as String,
    description: map['description'] as String,
    ipVersion: map['ipVersion'] as String,
    ipv6EndpointType: map['ipv6EndpointType'] as String,
    kind: map['kind'] as String,
    labelFingerprint: map['labelFingerprint'] as String,
    labels: (map['labels'] as Map).cast<String, String>(),
    name: map['name'] as String,
    network: map['network'] as String,
    networkTier: map['networkTier'] as String,
    prefixLength: map['prefixLength'] as int,
    purpose: map['purpose'] as String,
    region: map['region'] as String,
    selfLink: map['selfLink'] as String,
    selfLinkWithId: map['selfLinkWithId'] as String,
    status: map['status'] as String,
    subnetwork: map['subnetwork'] as String,
    users: (map['users'] as List).cast<String>(),
  );
}