FieldChangedClause.fromJson constructor

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

Implementation

factory FieldChangedClause.fromJson(Map<String, Object?> json) {
  return FieldChangedClause(
    field: JqlQueryField.fromJson(
        json[r'field'] as Map<String, Object?>? ?? const {}),
    operator$: FieldChangedClauseOperator.fromValue(
        json[r'operator'] as String? ?? ''),
    predicates: (json[r'predicates'] as List<Object?>?)
            ?.map((i) => JqlQueryClauseTimePredicate.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}