toJson method
Serializes an Acquisition to its JSON representation.
Implementation
@override
Map<String, dynamic> toJson() => {
'type': type,
if (children.isNotEmpty) 'child': children,
};
Serializes an Acquisition to its JSON representation.
@override
Map<String, dynamic> toJson() => {
'type': type,
if (children.isNotEmpty) 'child': children,
};