toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson({ClientUriConverter? clientUriConverter}) {
var result = <String, Object>{};
result['offset'] = offset;
result['length'] = length;
result['replacement'] = replacement;
if (id case var id?) {
result['id'] = id;
}
if (description case var description?) {
result['description'] = description;
}
return result;
}