GetDbSystemShapesResult.fromMap constructor

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

Implementation

factory GetDbSystemShapesResult.fromMap(Map<String, dynamic> map) {
  return GetDbSystemShapesResult(
    availabilityZoneId: (() { final guardedValue = map['availabilityZoneId']; if (guardedValue == null) return null; return guardedValue as String; })(),
    dbSystemShapes: (() { final guardedValue = map['dbSystemShapes']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetDbSystemShapesDbSystemShape>(guardedValue, (value) => GetDbSystemShapesDbSystemShape.fromMap((value as Map).cast<String, dynamic>())); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}