toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "access_token": accessToken,
      "orderAccessToken": orderAccessToken,
      "token_type": tokenType,
      "refresh_token": refreshToken,
      "expires_in": expiresIn,
      "scope": scope,
      "id": id,
      "orderUserId": orderUserId,
      "accountId": accountId,
      "profiles": profiles == null
          ? []
          : List<dynamic>.from(profiles!.map((x) => x.toJson())),
      "version": version,
      "roles": roles == null ? [] : List<dynamic>.from(roles!.map((x) => x)),
      "fullName": fullName,
      "phoneNumber": phoneNumber,
      "clientId": clientId,
      "clientSecret": clientSecret,
    };