build method

  1. @override
RawApiMap build(
  1. INyxx client
)
override

Returns built response for api

Implementation

@override
RawApiMap build(INyxx client) => {
  ...super.build(client),
  if (this.components != null) "components": [
    for (final row in this.components!)
      {
        "type": ComponentType.row.value,
        "components": [
          for (final component in row)
            component.build()
        ]
      }
  ]
};