build method

  1. @override
Map<String, Object?> build()
override

Implementation

@override
Map<String, Object?> build() => {
      if (channelId != null) 'channel_id': channelId.toString(),
      if (metadata != null) 'metadata': {'location': metadata!.location},
      'name': name,
      'privacy_level': privacyLevel.value,
      'scheduled_start_time': scheduledStartTime.toIso8601String(),
      if (scheduledEndTime != null) 'scheduled_end_time': scheduledEndTime!.toIso8601String(),
      if (description != null) 'description': description,
      'entity_type': type.value,
      if (image != null) 'image': image!.buildDataString(),
    };