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<core.String>((value) => value as core.String)
                .toList()
            : null,
        allowedStringValues: _json.containsKey('allowedStringValues')
            ? (_json['allowedStringValues'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        appliesTo: _json.containsKey('appliesTo')
            ? (_json['appliesTo'] as core.List)
                .map<core.String>((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,
      );