UserMetadata.fromResponse constructor

  1. @internal
UserMetadata.fromResponse(
  1. GoogleCloudIdentitytoolkitV1UserInfo response
)

Implementation

@internal
UserMetadata.fromResponse(
  auth1.GoogleCloudIdentitytoolkitV1UserInfo response,
)   : creationTime = DateTime.fromMillisecondsSinceEpoch(
        int.parse(response.createdAt!),
      ),
      lastSignInTime = response.lastLoginAt.let((lastLoginAt) {
        return DateTime.fromMillisecondsSinceEpoch(int.parse(lastLoginAt));
      }),
      lastRefreshTime = response.lastRefreshAt.let(DateTime.parse);