fromJson static method

GizmoCondition? fromJson(
  1. Object? json
)

Implementation

static GizmoCondition? fromJson(Object? json) {
  if (json is! Map || json['path'] is! String || json['equals'] is! String) {
    return null;
  }
  return GizmoCondition(json['path'] as String, json['equals'] as String);
}