toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var contextVariables = this.contextVariables;
  var expressions = this.expressions;

  final json = <String, Object?>{};
  if (contextVariables != null) {
    json[r'contextVariables'] = contextVariables;
  }
  json[r'expressions'] = expressions;
  return json;
}