Token constructor

Token({
  1. String? tokenId,
  2. TokenType? tokenType,
  3. int? entryIdx,
  4. Int64? atoms,
  5. bool? isMintBaton,
})

Implementation

factory Token({
  $core.String? tokenId,
  TokenType? tokenType,
  $core.int? entryIdx,
  $fixnum.Int64? atoms,
  $core.bool? isMintBaton,
}) {
  final result = create();
  if (tokenId != null) result.tokenId = tokenId;
  if (tokenType != null) result.tokenType = tokenType;
  if (entryIdx != null) result.entryIdx = entryIdx;
  if (atoms != null) result.atoms = atoms;
  if (isMintBaton != null) result.isMintBaton = isMintBaton;
  return result;
}