FileUploadQuestion.fromJson constructor

FileUploadQuestion.fromJson(
  1. Map json_
)

Implementation

FileUploadQuestion.fromJson(core.Map json_)
    : this(
        folderId: json_.containsKey('folderId')
            ? json_['folderId'] as core.String
            : null,
        maxFileSize: json_.containsKey('maxFileSize')
            ? json_['maxFileSize'] as core.String
            : null,
        maxFiles: json_.containsKey('maxFiles')
            ? json_['maxFiles'] as core.int
            : null,
        types: json_.containsKey('types')
            ? (json_['types'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );