RefreshResponse.fromJson constructor

RefreshResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

RefreshResponse.fromJson(Map<String, Object?> json)
    : accessToken = json['access_token'] as String,
      expiresInMs =
          ((v) => v != null ? v as int : null)(json['expires_in_ms']),
      refreshToken =
          ((v) => v != null ? v as String : null)(json['refresh_token']);