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