RecordDetail.fromJson constructor

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

Implementation

factory RecordDetail.fromJson(Map<String, dynamic> json) {
  return RecordDetail(
    createdTime: timeStampFromJson(json['CreatedTime']),
    launchRoleArn: json['LaunchRoleArn'] as String?,
    pathId: json['PathId'] as String?,
    productId: json['ProductId'] as String?,
    provisionedProductId: json['ProvisionedProductId'] as String?,
    provisionedProductName: json['ProvisionedProductName'] as String?,
    provisionedProductType: json['ProvisionedProductType'] as String?,
    provisioningArtifactId: json['ProvisioningArtifactId'] as String?,
    recordErrors: (json['RecordErrors'] as List?)
        ?.whereNotNull()
        .map((e) => RecordError.fromJson(e as Map<String, dynamic>))
        .toList(),
    recordId: json['RecordId'] as String?,
    recordTags: (json['RecordTags'] as List?)
        ?.whereNotNull()
        .map((e) => RecordTag.fromJson(e as Map<String, dynamic>))
        .toList(),
    recordType: json['RecordType'] as String?,
    status: (json['Status'] as String?)?.toRecordStatus(),
    updatedTime: timeStampFromJson(json['UpdatedTime']),
  );
}