TrafficSplit.fromJson constructor
TrafficSplit.fromJson(
- Map json_
Implementation
TrafficSplit.fromJson(core.Map json_)
: this(
allocations: json_.containsKey('allocations')
? (json_['allocations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
(value as core.num).toDouble(),
),
)
: null,
shardBy: json_.containsKey('shardBy')
? json_['shardBy'] as core.String
: null,
);