Map<String, dynamic> toJson() { return { 'block': block?.toJson(), 'other_transactions': otherTransactions?.map((e) => e.toJson()).toList(), }..removeWhere((key, value) => value == null); }