RegionDescription.fromJson constructor

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

Implementation

factory RegionDescription.fromJson(Map<String, dynamic> json) {
  return RegionDescription(
    desiredNumberOfDomainControllers:
        json['DesiredNumberOfDomainControllers'] as int?,
    directoryId: json['DirectoryId'] as String?,
    lastUpdatedDateTime: timeStampFromJson(json['LastUpdatedDateTime']),
    launchTime: timeStampFromJson(json['LaunchTime']),
    regionName: json['RegionName'] as String?,
    regionType: (json['RegionType'] as String?)?.toRegionType(),
    status: (json['Status'] as String?)?.toDirectoryStage(),
    statusLastUpdatedDateTime:
        timeStampFromJson(json['StatusLastUpdatedDateTime']),
    vpcSettings: json['VpcSettings'] != null
        ? DirectoryVpcSettings.fromJson(
            json['VpcSettings'] as Map<String, dynamic>)
        : null,
  );
}