MenuConfigurationResponse.fromJson constructor

MenuConfigurationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MenuConfigurationResponse.fromJson(Map<String, dynamic> json) =>
    MenuConfigurationResponse(
      exp: json["exp"],
      iat: json["iat"],
      authTime: json["auth_time"],
      jti: json["jti"],
      iss: json["iss"],
      aud: json["aud"],
      sub: json["sub"],
      typ: json["typ"],
      azp: json["azp"],
      sessionState: json["session_state"],
      acr: json["acr"],
      allowedOrigins: json["allowed-origins"] == null
          ? []
          : List<String>.from(json["allowed-origins"]!.map((x) => x)),
      realmAccess: json["realm_access"] == null
          ? null
          : RealmAccess.fromJson(json["realm_access"]),
      resourceAccess: json["resource_access"] == null
          ? null
          : ResourceAccess.fromJson(json["resource_access"]),
      authorization: json["authorization"] == null
          ? null
          : Authorization.fromJson(json["authorization"]),
      scope: json["scope"],
      sid: json["sid"],
      emailVerified: json["email_verified"],
      designationId: json["designationId"],
      mobileNumber: json["mobileNumber"],
      fullName: json["fullName"],
      levelName: json["levelName"],
      preferredUsername: json["preferred_username"],
      givenName: json["given_name"],
      userId: json["userId"],
      userCategory: json["userCategory"],
      positionId: json["positionId"],
      levelId: json["levelId"],
      name: json["name"],
      partnerId: json["partnerId"],
      userType: json["userType"],
      email: json["email"],
      status: json["status"],
    );