static JobState fromMap(Map<dynamic, dynamic> map) { String name = map["name"]; return JobState.fromName(name); }