toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "type": type,
      "operation_identifier": operation_identifier.toJson(),
      "related_operations":
          related_operations?.map((e) => e.toJson()).toList(),
      "status": status,
      "account": account?.toJson(),
      "amount": amount?.toJson(),
      "coin_change": coin_change?.toJson(),
      "metadata": metadata
    }..removeWhere(
        (dynamic key, dynamic value) => key == null || value == null);