toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  json[r'id'] = id;
  json[r'type'] = type;
  return json;
}