PlacementConstraint.fromJson constructor

PlacementConstraint.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PlacementConstraint.fromJson(Map<String, dynamic> json) {
  return PlacementConstraint(
    expression: json['expression'] as String?,
    type: (json['type'] as String?)?.toPlacementConstraintType(),
  );
}