Map<String, dynamic> toJson() { final name = this.name; final priority = this.priority; return { 'Name': name.toValue(), 'Priority': priority, }; }