attachment static method

Any attachment(
  1. Attachment attachment
)

Implementation

static Any attachment(Attachment attachment) => Any(
      typeUrl: attachmentTypeUrl,
      value: attachment.writeToBuffer(),
    );