toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'type': type,
'operation_identifier': operationIdentifier.toJson(),
'related_operations': relatedOperations?.map((e) => e.toJson()).toList(),
'status': status,
'account': account?.toJson(),
'amount': amount?.toJson(),
'coin_change': coinChange?.toJson(),
'metadata': metadata,
}..removeWhere((key, value) => value == null);
}