FixedOrPercent.fromJson constructor

FixedOrPercent.fromJson(
  1. Map _json
)

Implementation

FixedOrPercent.fromJson(core.Map _json)
    : this(
        fixed: _json.containsKey('fixed') ? _json['fixed'] as core.int : null,
        percent: _json.containsKey('percent')
            ? _json['percent'] as core.int
            : null,
      );