Token constructor

Token({
  1. String? name,
  2. bool? boolean,
  3. NumberNParam? numberInt,
  4. NumberNParam? numberUint,
  5. String? stringValue,
  6. String? address,
  7. List<int>? byteArray,
  8. List<int>? byteArrayFix,
  9. ArrayParam? array,
  10. ArrayParam? fixedArray,
  11. TupleParam? tuple,
})

Implementation

factory Token({
  $core.String? name,
  $core.bool? boolean,
  NumberNParam? numberInt,
  NumberNParam? numberUint,
  $core.String? stringValue,
  $core.String? address,
  $core.List<$core.int>? byteArray,
  $core.List<$core.int>? byteArrayFix,
  ArrayParam? array,
  ArrayParam? fixedArray,
  TupleParam? tuple,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (boolean != null) {
    $result.boolean = boolean;
  }
  if (numberInt != null) {
    $result.numberInt = numberInt;
  }
  if (numberUint != null) {
    $result.numberUint = numberUint;
  }
  if (stringValue != null) {
    $result.stringValue = stringValue;
  }
  if (address != null) {
    $result.address = address;
  }
  if (byteArray != null) {
    $result.byteArray = byteArray;
  }
  if (byteArrayFix != null) {
    $result.byteArrayFix = byteArrayFix;
  }
  if (array != null) {
    $result.array = array;
  }
  if (fixedArray != null) {
    $result.fixedArray = fixedArray;
  }
  if (tuple != null) {
    $result.tuple = tuple;
  }
  return $result;
}