WechatUserInfo constructor

WechatUserInfo({
  1. String? accessToken,
  2. int? expiresIn,
  3. String? refreshToken,
  4. String? openid,
  5. String? scope,
  6. String? unionid,
})

Implementation

factory WechatUserInfo({
  $core.String? accessToken,
  $core.int? expiresIn,
  $core.String? refreshToken,
  $core.String? openid,
  $core.String? scope,
  $core.String? unionid,
}) {
  final $result = create();
  if (accessToken != null) {
    $result.accessToken = accessToken;
  }
  if (expiresIn != null) {
    $result.expiresIn = expiresIn;
  }
  if (refreshToken != null) {
    $result.refreshToken = refreshToken;
  }
  if (openid != null) {
    $result.openid = openid;
  }
  if (scope != null) {
    $result.scope = scope;
  }
  if (unionid != null) {
    $result.unionid = unionid;
  }
  return $result;
}