core.Map<core.String, core.dynamic> toJson() { final name = this.name; final weight = this.weight; return {'name': ?name, 'weight': ?weight}; }