toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (maxFileSize != null) {
    _json[r'MaxFileSize'] = maxFileSize;
  }
  if (driverName != null) {
    _json[r'DriverName'] = driverName;
  }
  if (directory != null) {
    _json[r'Directory'] = directory;
  }
  if (enablePublicLink != null) {
    _json[r'EnablePublicLink'] = enablePublicLink;
  }
  if (publicLinkSalt != null) {
    _json[r'PublicLinkSalt'] = publicLinkSalt;
  }
  if (thumbnailWidth != null) {
    _json[r'ThumbnailWidth'] = thumbnailWidth;
  }
  if (thumbnailHeight != null) {
    _json[r'ThumbnailHeight'] = thumbnailHeight;
  }
  if (previewWidth != null) {
    _json[r'PreviewWidth'] = previewWidth;
  }
  if (previewHeight != null) {
    _json[r'PreviewHeight'] = previewHeight;
  }
  if (profileWidth != null) {
    _json[r'ProfileWidth'] = profileWidth;
  }
  if (profileHeight != null) {
    _json[r'ProfileHeight'] = profileHeight;
  }
  if (initialFont != null) {
    _json[r'InitialFont'] = initialFont;
  }
  if (amazonS3AccessKeyId != null) {
    _json[r'AmazonS3AccessKeyId'] = amazonS3AccessKeyId;
  }
  if (amazonS3SecretAccessKey != null) {
    _json[r'AmazonS3SecretAccessKey'] = amazonS3SecretAccessKey;
  }
  if (amazonS3Bucket != null) {
    _json[r'AmazonS3Bucket'] = amazonS3Bucket;
  }
  if (amazonS3Region != null) {
    _json[r'AmazonS3Region'] = amazonS3Region;
  }
  if (amazonS3Endpoint != null) {
    _json[r'AmazonS3Endpoint'] = amazonS3Endpoint;
  }
  if (amazonS3SSL != null) {
    _json[r'AmazonS3SSL'] = amazonS3SSL;
  }
  return _json;
}