Region.fromJson constructor
Implementation
factory Region.fromJson(Map<String, dynamic> json) {
return Region(
availabilityZones: (json['availabilityZones'] as List?)
?.whereNotNull()
.map((e) => AvailabilityZone.fromJson(e as Map<String, dynamic>))
.toList(),
continentCode: json['continentCode'] as String?,
description: json['description'] as String?,
displayName: json['displayName'] as String?,
name: (json['name'] as String?)?.toRegionName(),
relationalDatabaseAvailabilityZones:
(json['relationalDatabaseAvailabilityZones'] as List?)
?.whereNotNull()
.map((e) => AvailabilityZone.fromJson(e as Map<String, dynamic>))
.toList(),
);
}