toJson method

Map<String, dynamic> toJson()

Converts a ProfileModel object to a JSON map.

Implementation

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