Map<String, dynamic> toJson() { final version = this.version; return { if (version != null) 'Version': version, }; }