KeySet.fromJson constructor

KeySet.fromJson(
  1. Map json_
)

Implementation

KeySet.fromJson(core.Map json_)
    : this(
        all: json_.containsKey('all') ? json_['all'] as core.bool : null,
        keys: json_.containsKey('keys')
            ? (json_['keys'] as core.List)
                .map((value) => value as core.List)
                .toList()
            : null,
        ranges: json_.containsKey('ranges')
            ? (json_['ranges'] as core.List)
                .map((value) => KeyRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );