RawMessage_MessageLegacy constructor

RawMessage_MessageLegacy({
  1. RawMessage_MessageHeader? header,
  2. Iterable<String>? accountKeys,
  3. String? recentBlockhash,
  4. Iterable<RawMessage_Instruction>? instructions,
})

Implementation

factory RawMessage_MessageLegacy({
  RawMessage_MessageHeader? header,
  $core.Iterable<$core.String>? accountKeys,
  $core.String? recentBlockhash,
  $core.Iterable<RawMessage_Instruction>? instructions,
}) {
  final $result = create();
  if (header != null) {
    $result.header = header;
  }
  if (accountKeys != null) {
    $result.accountKeys.addAll(accountKeys);
  }
  if (recentBlockhash != null) {
    $result.recentBlockhash = recentBlockhash;
  }
  if (instructions != null) {
    $result.instructions.addAll(instructions);
  }
  return $result;
}