InvoiceDetails.fromJson constructor

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

Implementation

InvoiceDetails.fromJson(Map<String, dynamic> json) {
  status = json['status'];
  message = json['message'];
  timeStamp = json['timeStamp'];
  data = json['data'] != null ? Data.fromJson(json['data']) : null;
  requestId = json['requestId'];
  correlationId = json['correlationId'];
  code = json['code'];
  if (json['errors'] != null) {
    errors = <Errors>[];
    json['errors'].forEach((v) {
      errors!.add(Errors.fromJson(v));
    });
  }
}