Map<String, dynamic> toJson() { final locale = this.locale; final location = this.location; return { 'Locale': locale.toValue(), 'Location': location, }; }