Code constructor

Code({
  1. Int64? codeId,
  2. CodeInfo? codeInfo,
  3. List<int>? codeBytes,
  4. bool? pinned,
})

Implementation

factory Code({
  $fixnum.Int64? codeId,
  $3.CodeInfo? codeInfo,
  $core.List<$core.int>? codeBytes,
  $core.bool? pinned,
}) {
  final _result = create();
  if (codeId != null) {
    _result.codeId = codeId;
  }
  if (codeInfo != null) {
    _result.codeInfo = codeInfo;
  }
  if (codeBytes != null) {
    _result.codeBytes = codeBytes;
  }
  if (pinned != null) {
    _result.pinned = pinned;
  }
  return _result;
}