MatchCondition.fromJson constructor

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

Creates a MatchCondition from JSON data.

Implementation

factory MatchCondition.fromJson(Map<String, dynamic> json) {
  final tempExpressionJson = json['expression'];
  final tempNameJson = json['name'];

  final String tempExpression = tempExpressionJson;
  final String tempName = tempNameJson;

  return MatchCondition(
    expression: tempExpression,
    name: tempName,
  );
}