Map<String, Object?> toJson() => { ...jsonMap, 'signatures': signatures, if (unsigned != null) 'unsigned': unsigned, };