toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('id')) {
final l$id = id;
result$data['id'] = l$id;
}
if (_$data.containsKey('type')) {
final l$type = type;
result$data['type'] = l$type;
}
return result$data;
}