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