ExperimentVariations.fromJson constructor

ExperimentVariations.fromJson(
  1. Map json_
)

Implementation

ExperimentVariations.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
        weight: json_.containsKey('weight')
            ? (json_['weight'] as core.num).toDouble()
            : null,
        won: json_.containsKey('won') ? json_['won'] as core.bool : null,
      );