JobQueueDetail.fromJson constructor

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

Implementation

factory JobQueueDetail.fromJson(Map<String, dynamic> json) {
  return JobQueueDetail(
    computeEnvironmentOrder: (json['computeEnvironmentOrder'] as List)
        .whereNotNull()
        .map((e) =>
            ComputeEnvironmentOrder.fromJson(e as Map<String, dynamic>))
        .toList(),
    jobQueueArn: json['jobQueueArn'] as String,
    jobQueueName: json['jobQueueName'] as String,
    priority: json['priority'] as int,
    state: (json['state'] as String).toJQState(),
    status: (json['status'] as String?)?.toJQStatus(),
    statusReason: json['statusReason'] as String?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}