toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var entity = this.entity;
  var key = this.key;
  var path = this.path;
  var type = this.type;

  final json = <String, Object?>{};
  json[r'entity'] = entity;
  json[r'key'] = key;
  json[r'path'] = path;
  if (type != null) {
    json[r'type'] = type.value;
  }
  return json;
}