SdkUserModel.fromJson constructor
SdkUserModel.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SdkUserModel.fromJson(Map<String, dynamic> json) => SdkUserModel(
accessToken: json["access_token"],
orderAccessToken: json["orderAccessToken"],
tokenType: json["token_type"],
refreshToken: json["refresh_token"],
expiresIn: json["expires_in"],
scope: json["scope"],
id: json["id"],
orderUserId: json["orderUserId"],
accountId: json["accountId"],
profiles: json["profiles"] == null
? []
: List<Profile>.from(
json["profiles"]!.map((x) => Profile.fromJson(x)),
),
version: json["version"],
roles: json["roles"] == null
? []
: List<String>.from(json["roles"]!.map((x) => x)),
fullName: json["fullName"],
phoneNumber: json["phoneNumber"],
clientId: json["clientId"],
clientSecret: json["clientSecret"],
);