Map<String, dynamic> toJson() { final s3Uri = this.s3Uri; final inputFormat = this.inputFormat; return { 'S3Uri': s3Uri, if (inputFormat != null) 'InputFormat': inputFormat.toValue(), }; }