Map<String, Object?> toJson() { var number = this.number; var type = this.type; final json = <String, Object?>{}; json[r'number'] = number; json[r'type'] = type; return json; }