GetBulkDeploymentStatusResponse.fromJson constructor

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

Implementation

factory GetBulkDeploymentStatusResponse.fromJson(Map<String, dynamic> json) {
  return GetBulkDeploymentStatusResponse(
    bulkDeploymentMetrics: json['BulkDeploymentMetrics'] != null
        ? BulkDeploymentMetrics.fromJson(
            json['BulkDeploymentMetrics'] as Map<String, dynamic>)
        : null,
    bulkDeploymentStatus:
        (json['BulkDeploymentStatus'] as String?)?.toBulkDeploymentStatus(),
    createdAt: json['CreatedAt'] as String?,
    errorDetails: (json['ErrorDetails'] as List?)
        ?.whereNotNull()
        .map((e) => ErrorDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    errorMessage: json['ErrorMessage'] as String?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}