toJson method

Map<String, dynamic> toJson()

Converts the instance to a json map.

Implementation

Map<String, dynamic> toJson() => {
      "user_id": userId,
      "user_info": userInfo,
    };