StaticFilesHandler.fromJson constructor

StaticFilesHandler.fromJson(
  1. Map json_
)

Implementation

StaticFilesHandler.fromJson(core.Map json_)
    : this(
        applicationReadable: json_.containsKey('applicationReadable')
            ? json_['applicationReadable'] as core.bool
            : null,
        expiration: json_.containsKey('expiration')
            ? json_['expiration'] as core.String
            : null,
        httpHeaders: json_.containsKey('httpHeaders')
            ? (json_['httpHeaders'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        requireMatchingFile: json_.containsKey('requireMatchingFile')
            ? json_['requireMatchingFile'] as core.bool
            : null,
        uploadPathRegex: json_.containsKey('uploadPathRegex')
            ? json_['uploadPathRegex'] as core.String
            : null,
      );