toJson method
The JSON form.
Implementation
Json toJson() => {
'id': id,
'patches': [
for (final p in patches) {'key': p.key, 'kind': p.kind},
],
'tags': tags,
'created': created,
'places': places,
};
The JSON form.
Json toJson() => {
'id': id,
'patches': [
for (final p in patches) {'key': p.key, 'kind': p.kind},
],
'tags': tags,
'created': created,
'places': places,
};