RestMethodMediaUpload.fromJson constructor

RestMethodMediaUpload.fromJson(
  1. Map json_
)

Implementation

RestMethodMediaUpload.fromJson(core.Map json_)
    : this(
        accept: json_.containsKey('accept')
            ? (json_['accept'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        maxSize: json_.containsKey('maxSize')
            ? json_['maxSize'] as core.String
            : null,
        protocols: json_.containsKey('protocols')
            ? RestMethodMediaUploadProtocols.fromJson(
                json_['protocols'] as core.Map<core.String, core.dynamic>)
            : null,
      );