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