ParsedJqlQuery.fromJson constructor

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

Implementation

factory ParsedJqlQuery.fromJson(Map<String, Object?> json) {
  return ParsedJqlQuery(
    errors: (json[r'errors'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    query: json[r'query'] as String? ?? '',
    structure: json[r'structure'] != null
        ? JqlQuery.fromJson(json[r'structure']! as Map<String, Object?>)
        : null,
  );
}