Map<String, dynamic> toMap() { return TaskResourceModelMapper.ensureInitialized() .encodeMap<TaskResourceModel>(this as TaskResourceModel); }