Slicer.fromJson constructor

Slicer.fromJson(
  1. Map json_
)

Implementation

Slicer.fromJson(core.Map json_)
    : this(
        position: json_.containsKey('position')
            ? EmbeddedObjectPosition.fromJson(
                json_['position'] as core.Map<core.String, core.dynamic>)
            : null,
        slicerId: json_.containsKey('slicerId')
            ? json_['slicerId'] as core.int
            : null,
        spec: json_.containsKey('spec')
            ? SlicerSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
      );