toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var arguments = this.arguments;
  var created = this.created;
  var field = this.field;
  var functionKey = this.functionKey;
  var functionName = this.functionName;
  var id = this.id;
  var operator$ = this.operator$;
  var updated = this.updated;
  var used = this.used;
  var value = this.value;

  final json = <String, Object?>{};
  json[r'arguments'] = arguments;
  if (created != null) {
    json[r'created'] = created.toIso8601String();
  }
  if (field != null) {
    json[r'field'] = field;
  }
  if (functionKey != null) {
    json[r'functionKey'] = functionKey;
  }
  if (functionName != null) {
    json[r'functionName'] = functionName;
  }
  if (id != null) {
    json[r'id'] = id;
  }
  if (operator$ != null) {
    json[r'operator'] = operator$;
  }
  if (updated != null) {
    json[r'updated'] = updated.toIso8601String();
  }
  if (used != null) {
    json[r'used'] = used.toIso8601String();
  }
  if (value != null) {
    json[r'value'] = value;
  }
  return json;
}