CloudStorageConfig.fromJson constructor

CloudStorageConfig.fromJson(
  1. Map json_
)

Implementation

CloudStorageConfig.fromJson(core.Map json_)
    : this(
        avroConfig: json_.containsKey('avroConfig')
            ? AvroConfig.fromJson(
                json_['avroConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        bucket: json_.containsKey('bucket')
            ? json_['bucket'] as core.String
            : null,
        filenameDatetimeFormat: json_.containsKey('filenameDatetimeFormat')
            ? json_['filenameDatetimeFormat'] as core.String
            : null,
        filenamePrefix: json_.containsKey('filenamePrefix')
            ? json_['filenamePrefix'] as core.String
            : null,
        filenameSuffix: json_.containsKey('filenameSuffix')
            ? json_['filenameSuffix'] as core.String
            : null,
        maxBytes: json_.containsKey('maxBytes')
            ? json_['maxBytes'] as core.String
            : null,
        maxDuration: json_.containsKey('maxDuration')
            ? json_['maxDuration'] as core.String
            : null,
        serviceAccountEmail: json_.containsKey('serviceAccountEmail')
            ? json_['serviceAccountEmail'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        textConfig: json_.containsKey('textConfig')
            ? TextConfig.fromJson(
                json_['textConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );