Flag.fromJson constructor

Flag.fromJson(
  1. Map json_
)

Implementation

Flag.fromJson(core.Map json_)
    : this(
        allowedIntValues: json_.containsKey('allowedIntValues')
            ? (json_['allowedIntValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        allowedStringValues: json_.containsKey('allowedStringValues')
            ? (json_['allowedStringValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        appliesTo: json_.containsKey('appliesTo')
            ? (json_['appliesTo'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        inBeta:
            json_.containsKey('inBeta') ? json_['inBeta'] as core.bool : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        maxValue: json_.containsKey('maxValue')
            ? json_['maxValue'] as core.String
            : null,
        minValue: json_.containsKey('minValue')
            ? json_['minValue'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        requiresRestart: json_.containsKey('requiresRestart')
            ? json_['requiresRestart'] as core.bool
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );