GetReservationSubBlockResult.fromMap constructor

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

Implementation

factory GetReservationSubBlockResult.fromMap(Map<String, dynamic> map) {
  return GetReservationSubBlockResult(
    creationTimestamp: (() { final guardedValue = map['creationTimestamp']; if (guardedValue == null) return null; return guardedValue as String; })(),
    healthInfos: (() { final guardedValue = map['healthInfos']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetReservationSubBlockHealthInfo>(guardedValue, (value) => GetReservationSubBlockHealthInfo.fromMap((value as Map).cast<String, dynamic>())); })(),
    id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
    inUseCount: (() { final guardedValue = map['inUseCount']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
    kind: (() { final guardedValue = map['kind']; if (guardedValue == null) return null; return guardedValue as String; })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
    physicalTopologies: (() { final guardedValue = map['physicalTopologies']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetReservationSubBlockPhysicalTopology>(guardedValue, (value) => GetReservationSubBlockPhysicalTopology.fromMap((value as Map).cast<String, dynamic>())); })(),
    project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return guardedValue as String; })(),
    reservation: (() { final guardedValue = map['reservation']; if (guardedValue == null) return null; return guardedValue as String; })(),
    reservationBlock: (() { final guardedValue = map['reservationBlock']; if (guardedValue == null) return null; return guardedValue as String; })(),
    reservationSubBlockMaintenances: (() { final guardedValue = map['reservationSubBlockMaintenances']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetReservationSubBlockReservationSubBlockMaintenance>(guardedValue, (value) => GetReservationSubBlockReservationSubBlockMaintenance.fromMap((value as Map).cast<String, dynamic>())); })(),
    resourceId: (() { final guardedValue = map['resourceId']; if (guardedValue == null) return null; return guardedValue as String; })(),
    selfLink: (() { final guardedValue = map['selfLink']; if (guardedValue == null) return null; return guardedValue as String; })(),
    selfLinkWithId: (() { final guardedValue = map['selfLinkWithId']; if (guardedValue == null) return null; return guardedValue as String; })(),
    status: (() { final guardedValue = map['status']; if (guardedValue == null) return null; return guardedValue as String; })(),
    subBlockCount: (() { final guardedValue = map['subBlockCount']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
    zone: (() { final guardedValue = map['zone']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}