toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final enabled = this.enabled;
  final customCname = this.customCname;
  final expirationInDays = this.expirationInDays;
  final s3BucketName = this.s3BucketName;
  return {
    'Enabled': enabled,
    if (customCname != null) 'CustomCname': customCname,
    if (expirationInDays != null) 'ExpirationInDays': expirationInDays,
    if (s3BucketName != null) 'S3BucketName': s3BucketName,
  };
}