ConvertedJQLQueries.fromJson constructor

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

Implementation

factory ConvertedJQLQueries.fromJson(Map<String, Object?> json) {
  return ConvertedJQLQueries(
    queriesWithUnknownUsers:
        (json[r'queriesWithUnknownUsers'] as List<Object?>?)
                ?.map((i) => JQLQueryWithUnknownUsers.fromJson(
                    i as Map<String, Object?>? ?? const {}))
                .toList() ??
            [],
    queryStrings: (json[r'queryStrings'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}