CompoundClause.fromJson constructor

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

Implementation

factory CompoundClause.fromJson(Map<String, Object?> json) {
  return CompoundClause(
    clauses: (json[r'clauses'] as List<Object?>?)
            ?.map((i) => JqlQueryClause.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    operator$:
        CompoundClauseOperator.fromValue(json[r'operator'] as String? ?? ''),
  );
}