toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['message'] = this.message;
data['timeStamp'] = this.timeStamp;
if (this.data != null) {
data['data'] = this.data!.map((v) => v.toJson()).toList();
}
data['requestId'] = this.requestId;
data['correlationId'] = this.correlationId;
data['code'] = this.code;
data['errors'] = this.errors;
return data;
}