Map<String, dynamic> toJSON() { return { "weightList": weightList != null ? weightList!.map((e) => e.toJSON()).toList() : null }; }