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