fromJson_conditional static method

RolloutStrategyAttributeConditional fromJson_conditional(
  1. Map<String, dynamic> json
)

Implementation

static RolloutStrategyAttributeConditional fromJson_conditional(
    Map<String, dynamic> json) {
  final _jsonData = json[r'conditional'];
  if (_jsonData == null) {
    throw DeserialisationError(json, r'conditional', r'',
        'conditional field is null and is required to have a value');
  }

  final _enumVal =
      RolloutStrategyAttributeConditionalExtension.fromJson(_jsonData);
  if (_enumVal == null)
    throw DeserialisationError(json, r'conditional', r'',
        'conditional field is null and is required to have a value');

  return _enumVal;
}