Token constructor

Token({
  1. String? accessToken,
  2. Timestamp? expiry,
})

Implementation

factory Token({
  $core.String? accessToken,
  $2.Timestamp? expiry,
}) {
  final _result = create();
  if (accessToken != null) {
    _result.accessToken = accessToken;
  }
  if (expiry != null) {
    _result.expiry = expiry;
  }
  return _result;
}