toJson method

Map<String, dynamic> toJson()

Converts a ProfileModel instance into a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      "data": data ?? data?.toJson(),
      "status": status,
    };