toJson method
Implementation
@override
Map<String, dynamic> toJson(Nux object) {
if (object.hasNotUnknown) {
return object.toJson();
}
final json = object.toJson();
final props = <String, dynamic>{};
for (final key in json.keys) {
if (key == r'$unknown') continue;
props[key] = json[key];
}
return <String, dynamic>{
...props,
...json[r'$unknown'],
};
}