GetOffset.deserialize constructor

GetOffset.deserialize(
  1. Map<String, String> json,
  2. DeserializeFinderFactory finderFactory, {
  3. String? path,
})

Deserializes this command from the value generated by serialize.

Implementation

GetOffset.deserialize(super.json, super.finderFactory, {super.path})
  : offsetType = json.containsKey('offsetType')
        ? _offsetTypeIndex.lookupBySimpleName(
            json['offsetType']!,
            path: path == null ? 'offsetType' : '$path.offsetType',
          )
        : throw ArgumentError.notNull(path == null ? 'offsetType' : '$path.offsetType'),
    super.deserialize();