BusinessReport.fromJson constructor

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

Implementation

factory BusinessReport.fromJson(Map<String, dynamic> json) {
  return BusinessReport(
    deliveryTime: timeStampFromJson(json['DeliveryTime']),
    downloadUrl: json['DownloadUrl'] as String?,
    failureCode:
        (json['FailureCode'] as String?)?.toBusinessReportFailureCode(),
    s3Location: json['S3Location'] != null
        ? BusinessReportS3Location.fromJson(
            json['S3Location'] as Map<String, dynamic>)
        : null,
    status: (json['Status'] as String?)?.toBusinessReportStatus(),
  );
}