toJson method

Map<String, Object?> toJson()

Implementation

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

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