toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() => {
"fieldType": fieldType.value,
"fieldName": fieldName,
"lcid": lcid.value,
"lcidName": lcidName,
"value": value,
"getValue": getValue()?.toJson(),
"values": values.map((e) => e.toJson()).toList(),
"status": status.value,
"comparisonList": comparisonList.map((e) => e.toJson()).toList(),
"validityList": validityList.map((e) => e.toJson()).toList(),
"comparisonStatus": comparisonStatus.value,
"validityStatus": validityStatus.value,
}.clearNulls();