code: func (c *TextComponent) MarshalJSON() ([]byte, error) {
  	return json.Marshal(&struct {
  		Type    FlexComponentType        `json:"type"`
  		Text    string                   `json:"text"`
  		Flex    *int                     `json:"flex,omitempty"`
  		Margin  FlexComponentMarginType  `json:"margin,omitempty"`
  		Size    FlexTextSizeType         `json:"size,omitempty"`
  		Align   FlexComponentAlignType   `json:"align,omitempty"`
  		Gravity FlexComponentGravityType `json:"gravity,omitempty"`
  		Wrap    bool                     `json:"wrap,omitempty"`
  		Weight  FlexTextWeightType       `json:"weight,omitempty"`
  		Color   string                   `json:"color,omitempty"`
  		Action  TemplateAction           `json:"action,omitempty"`
  	}{
  		Type:    FlexComponentTypeText,
  		Text:    c.Text,
  		Flex:    c.Flex,
  		Margin:  c.Margin,
  		Size:    c.Size,
  		Align:   c.Align,
  		Gravity: c.Gravity,
  		Wrap:    c.Wrap,
  		Weight:  c.Weight,
  		Color:   c.Color,
  		Action:  c.Action,
  	})
  }
docs: // MarshalJSON method of TextComponent