PlacementType.fromJson constructor

PlacementType.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PlacementType.fromJson(Map<String, dynamic> json) {
  return PlacementType(
    availabilityZone: json['AvailabilityZone'] as String?,
    availabilityZones: (json['AvailabilityZones'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}