JobListEntry.fromJson constructor

JobListEntry.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory JobListEntry.fromJson(Map<String, dynamic> json) {
  return JobListEntry(
    creationDate: timeStampFromJson(json['CreationDate']),
    description: json['Description'] as String?,
    isMaster: json['IsMaster'] as bool?,
    jobId: json['JobId'] as String?,
    jobState: (json['JobState'] as String?)?.toJobState(),
    jobType: (json['JobType'] as String?)?.toJobType(),
    snowballType: (json['SnowballType'] as String?)?.toSnowballType(),
  );
}