LicenseOperationFailure.fromJson constructor

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

Implementation

factory LicenseOperationFailure.fromJson(Map<String, dynamic> json) {
  return LicenseOperationFailure(
    errorMessage: json['ErrorMessage'] as String?,
    failureTime: timeStampFromJson(json['FailureTime']),
    metadataList: (json['MetadataList'] as List?)
        ?.whereNotNull()
        .map((e) => Metadata.fromJson(e as Map<String, dynamic>))
        .toList(),
    operationName: json['OperationName'] as String?,
    operationRequestedBy: json['OperationRequestedBy'] as String?,
    resourceArn: json['ResourceArn'] as String?,
    resourceOwnerId: json['ResourceOwnerId'] as String?,
    resourceType: (json['ResourceType'] as String?)?.toResourceType(),
  );
}