Host.fromJson constructor

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

Implementation

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