Map<String, dynamic> toJson() { return { 'network_identifier': networkIdentifier.toJson(), 'transaction_identifier': transactionIdentifier.toJson(), }..removeWhere((key, value) => value == null); }