DescribeEndpointOutput.fromJson constructor

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

Implementation

factory DescribeEndpointOutput.fromJson(Map<String, dynamic> json) {
  return DescribeEndpointOutput(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    endpointArn: json['EndpointArn'] as String,
    endpointConfigName: json['EndpointConfigName'] as String,
    endpointName: json['EndpointName'] as String,
    endpointStatus: (json['EndpointStatus'] as String).toEndpointStatus(),
    lastModifiedTime:
        nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
    dataCaptureConfig: json['DataCaptureConfig'] != null
        ? DataCaptureConfigSummary.fromJson(
            json['DataCaptureConfig'] as Map<String, dynamic>)
        : null,
    failureReason: json['FailureReason'] as String?,
    lastDeploymentConfig: json['LastDeploymentConfig'] != null
        ? DeploymentConfig.fromJson(
            json['LastDeploymentConfig'] as Map<String, dynamic>)
        : null,
    productionVariants: (json['ProductionVariants'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ProductionVariantSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}