toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final imageUri = this.imageUri;
  final containerArguments = this.containerArguments;
  final containerEntrypoint = this.containerEntrypoint;
  final environment = this.environment;
  final postAnalyticsProcessorSourceUri =
      this.postAnalyticsProcessorSourceUri;
  final recordPreprocessorSourceUri = this.recordPreprocessorSourceUri;
  return {
    'ImageUri': imageUri,
    if (containerArguments != null) 'ContainerArguments': containerArguments,
    if (containerEntrypoint != null)
      'ContainerEntrypoint': containerEntrypoint,
    if (environment != null) 'Environment': environment,
    if (postAnalyticsProcessorSourceUri != null)
      'PostAnalyticsProcessorSourceUri': postAnalyticsProcessorSourceUri,
    if (recordPreprocessorSourceUri != null)
      'RecordPreprocessorSourceUri': recordPreprocessorSourceUri,
  };
}