ItemTarget.fromJson constructor

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

Implementation

ItemTarget.fromJson(Map<String, dynamic> json) {
  // Set type operator
  targetOperator = (json['operator'] ?? "") as String;

  // Set tragetKey
  tragetKey = (json['key'] ?? "") as String;

  // Set the key value map
  targetValue = json['value'];
}