ShardingOption.fromJson constructor

ShardingOption.fromJson(
  1. Map _json
)

Implementation

ShardingOption.fromJson(core.Map _json)
    : this(
        manualSharding: _json.containsKey('manualSharding')
            ? ManualSharding.fromJson(_json['manualSharding']
                as core.Map<core.String, core.dynamic>)
            : null,
        uniformSharding: _json.containsKey('uniformSharding')
            ? UniformSharding.fromJson(_json['uniformSharding']
                as core.Map<core.String, core.dynamic>)
            : null,
      );