Key.fromJson constructor

Key.fromJson(
  1. Map json_
)

Implementation

Key.fromJson(core.Map json_)
    : this(
        partitionId: json_.containsKey('partitionId')
            ? PartitionId.fromJson(
                json_['partitionId'] as core.Map<core.String, core.dynamic>)
            : null,
        path: json_.containsKey('path')
            ? (json_['path'] as core.List)
                .map((value) => PathElement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );