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