DescribeChangeSetResponse.fromJson constructor

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

Implementation

factory DescribeChangeSetResponse.fromJson(Map<String, dynamic> json) {
  return DescribeChangeSetResponse(
    changeSet: (json['ChangeSet'] as List?)
        ?.whereNotNull()
        .map((e) => ChangeSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    changeSetArn: json['ChangeSetArn'] as String?,
    changeSetId: json['ChangeSetId'] as String?,
    changeSetName: json['ChangeSetName'] as String?,
    endTime: json['EndTime'] as String?,
    failureCode: (json['FailureCode'] as String?)?.toFailureCode(),
    failureDescription: json['FailureDescription'] as String?,
    startTime: json['StartTime'] as String?,
    status: (json['Status'] as String?)?.toChangeStatus(),
  );
}