JobSummary.fromJson constructor

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

Implementation

factory JobSummary.fromJson(Map<String, dynamic> json) {
  return JobSummary(
    completedAt: timeStampFromJson(json['completedAt']),
    createdAt: timeStampFromJson(json['createdAt']),
    jobArn: json['jobArn'] as String?,
    jobId: json['jobId'] as String?,
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    status: (json['status'] as String?)?.toJobStatus(),
    targetSelection:
        (json['targetSelection'] as String?)?.toTargetSelection(),
    thingGroupId: json['thingGroupId'] as String?,
  );
}