toJson method

Map<String, dynamic> toJson()

get the json from the model

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "name": name,
      "description": description,
      "image": image,
      "percent": percent,
    };