GetHostOutput.fromJson constructor

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

Implementation

factory GetHostOutput.fromJson(Map<String, dynamic> json) {
  return GetHostOutput(
    name: json['Name'] as String?,
    providerEndpoint: json['ProviderEndpoint'] as String?,
    providerType: (json['ProviderType'] as String?)?.toProviderType(),
    status: json['Status'] as String?,
    vpcConfiguration: json['VpcConfiguration'] != null
        ? VpcConfiguration.fromJson(
            json['VpcConfiguration'] as Map<String, dynamic>)
        : null,
  );
}