build method

  1. @override
RawApiMap build()
override

Returns built response for api

Implementation

@override
RawApiMap build() => {
      if (channelId?.id != 0) "channel_id": channelId.toString(),
      if (metadata != null) 'entity_metadata': metadata!.build(),
      if (name != null) 'name': name,
      if (privacyLevel != null) 'privacy_level': privacyLevel!.value,
      if (startDate != null) 'scheduled_start_time': startDate!.toIso8601String(),
      if (endDate != null) 'scheduled_end_time': endDate!.toIso8601String(),
      if (description != null) 'description': description,
      if (type != null) 'entity_type': type!.value,
      if (status != null) 'status': status!.value
    };