import 'dart:convert'; Ssovalidationmodel ssovalidationmodelFromJson(String str) => Ssovalidationmodel.fromJson(json.decode(str)); String ssovalidationmodelToJson(Ssovalidationmodel data) => json.encode(data.toJson()); class Ssovalidationmodel { Success success; Ssovalidationmodel({ required this.success, }); factory Ssovalidationmodel.fromJson(Map json) => Ssovalidationmodel( success: Success.fromJson(json["success"]), ); Map toJson() => { "success": success.toJson(), }; } class Success { String token; int id; String name; String email; Success({ required this.token, required this.id, required this.name, required this.email, }); factory Success.fromJson(Map json) => Success( token: json["token"], id: json["id"], name: json["name"], email: json["email"], ); Map toJson() => { "token": token, "id": id, "name": name, "email": email, }; }