toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'types': types.map((final PortableType value) => value.toJson()).toList(growable: false),
'pallets': pallets.map((pallet) => pallet.toJson()).toList(),
'extrinsic': extrinsic.toJson(),
'type': type,
};