GetAddressGroupsResult.fromMap constructor

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

Implementation

factory GetAddressGroupsResult.fromMap(Map<String, dynamic> map) {
  return GetAddressGroupsResult(
    addressGroups: (() { final guardedValue = map['addressGroups']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetAddressGroupsAddressGroup>(guardedValue, (value) => GetAddressGroupsAddressGroup.fromMap((value as Map).cast<String, dynamic>())); })(),
    id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
    location: (() { final guardedValue = map['location']; if (guardedValue == null) return null; return guardedValue as String; })(),
    parent: (() { final guardedValue = map['parent']; if (guardedValue == null) return null; return guardedValue as String; })(),
    project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}