toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final result = <String, dynamic>{
'retain': length,
};
if (_attributes != null && _attributes!.isNotEmpty) {
result['attributes'] = attributes;
}
return result;
}