QueueDTO.fromJson constructor

QueueDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory QueueDTO.fromJson(Map<String, Object?> json) {
  return QueueDTO(
    links: json[r'_links'] != null
        ? SelfLinkDTO.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
    fields: (json[r'fields'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    id: json[r'id'] as String?,
    issueCount: (json[r'issueCount'] as num?)?.toInt(),
    jql: json[r'jql'] as String?,
    name: json[r'name'] as String?,
  );
}