|
|
|
|
@ -21,14 +21,16 @@ class Document {
|
|
|
|
|
int? messageStatus;
|
|
|
|
|
String? message;
|
|
|
|
|
|
|
|
|
|
factory Document.fromJson(Map<String, dynamic> json) => Document(
|
|
|
|
|
factory Document.fromJson(Map<String, dynamic> json) =>
|
|
|
|
|
Document(
|
|
|
|
|
totalItemsCount: json["totalItemsCount"],
|
|
|
|
|
data: json["data"] == null ? null : List<DocumentData>.from(json["data"].map((x) => DocumentData.fromJson(x))),
|
|
|
|
|
messageStatus: json["messageStatus"],
|
|
|
|
|
message: json["message"],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
Map<String, dynamic> toJson() =>
|
|
|
|
|
{
|
|
|
|
|
"totalItemsCount": totalItemsCount,
|
|
|
|
|
"data": data == null ? null : List<dynamic>.from(data!.map((x) => x.toJson())),
|
|
|
|
|
"messageStatus": messageStatus,
|
|
|
|
|
@ -50,6 +52,7 @@ class DocumentData {
|
|
|
|
|
this.fileExt,
|
|
|
|
|
this.documentName,
|
|
|
|
|
this.isLocalFile,
|
|
|
|
|
this.description,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
int? id;
|
|
|
|
|
@ -64,22 +67,26 @@ class DocumentData {
|
|
|
|
|
String? statusText;
|
|
|
|
|
String? documentName;
|
|
|
|
|
bool? isLocalFile;
|
|
|
|
|
String? description;
|
|
|
|
|
|
|
|
|
|
factory DocumentData.fromJson(Map<String, dynamic> json) => DocumentData(
|
|
|
|
|
id: json["id"],
|
|
|
|
|
serviceProviderId: json["serviceProviderID"],
|
|
|
|
|
documentId: json["documentID"],
|
|
|
|
|
documentUrl: json["documentURL"],
|
|
|
|
|
status: json["status"],
|
|
|
|
|
statusText: json["statusText"],
|
|
|
|
|
comment: json["comment"],
|
|
|
|
|
isActive: json["isActive"],
|
|
|
|
|
document: null,
|
|
|
|
|
fileExt: null,
|
|
|
|
|
documentName: json["documentName"],
|
|
|
|
|
isLocalFile: false);
|
|
|
|
|
factory DocumentData.fromJson(Map<String, dynamic> json) =>
|
|
|
|
|
DocumentData(
|
|
|
|
|
id: json["id"],
|
|
|
|
|
serviceProviderId: json["serviceProviderID"],
|
|
|
|
|
documentId: json["documentID"],
|
|
|
|
|
documentUrl: json["documentURL"],
|
|
|
|
|
status: json["status"],
|
|
|
|
|
statusText: json["statusText"],
|
|
|
|
|
comment: json["comment"],
|
|
|
|
|
isActive: json["isActive"],
|
|
|
|
|
document: null,
|
|
|
|
|
fileExt: null,
|
|
|
|
|
documentName: json["documentName"],
|
|
|
|
|
isLocalFile: false,
|
|
|
|
|
description: null);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
Map<String, dynamic> toJson() =>
|
|
|
|
|
{
|
|
|
|
|
"id": id,
|
|
|
|
|
"serviceProviderID": serviceProviderId,
|
|
|
|
|
"documentID": documentId,
|
|
|
|
|
|