toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final data = super.toJson();
data['descendantBlocks'] =
descendantBlocks.map((block) => block.toJson()).toList();
data['usedPlasma'] = usedPlasma;
data['basePlasma'] = basePlasma;
data['changesHash'] = changesHash.toString();
data['token'] = token != null ? token!.toJson() : null;
data['confirmationDetail'] =
confirmationDetail != null ? confirmationDetail!.toJson() : null;
data['pairedAccountBlock'] =
pairedAccountBlock != null ? pairedAccountBlock!.toJson() : null;
return data;
}