toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "sourceType": sourceType.value,
      "source": source,
      "validityStatus": validityStatus.value,
    }.clearNulls();