FileLabels.fromJson constructor

FileLabels.fromJson(
  1. Map json_
)

Implementation

FileLabels.fromJson(core.Map json_)
    : this(
        hidden:
            json_.containsKey('hidden') ? json_['hidden'] as core.bool : null,
        modified: json_.containsKey('modified')
            ? json_['modified'] as core.bool
            : null,
        restricted: json_.containsKey('restricted')
            ? json_['restricted'] as core.bool
            : null,
        starred: json_.containsKey('starred')
            ? json_['starred'] as core.bool
            : null,
        trashed: json_.containsKey('trashed')
            ? json_['trashed'] as core.bool
            : null,
        viewed:
            json_.containsKey('viewed') ? json_['viewed'] as core.bool : null,
      );