toJson method
Implementation
Map<String, Object?> toJson() {
var type = this.type;
var value = this.value;
final json = <String, Object?>{};
if (type != null) {
json[r'type'] = type.value;
}
if (value != null) {
json[r'value'] = value.toIso8601String();
}
return json;
}