toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() => {
"status": status.value,
"comparisonStatus": comparisonStatus.value,
"validityStatus": validityStatus.value,
"availableSourceList":
availableSourceList.map((e) => e.toJson()).toList(),
"fields": fields.map((e) => e.toJson()).toList(),
}.clearNulls();