IssueTypeWithStatus.fromJson constructor

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

Implementation

factory IssueTypeWithStatus.fromJson(Map<String, Object?> json) {
  return IssueTypeWithStatus(
    id: json[r'id'] as String? ?? '',
    name: json[r'name'] as String? ?? '',
    self: json[r'self'] as String? ?? '',
    statuses: (json[r'statuses'] as List<Object?>?)
            ?.map((i) => StatusDetails.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    subtask: json[r'subtask'] as bool? ?? false,
  );
}