toJSON method

Map<String, dynamic> toJSON()

Implementation

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