FixedOrPercent.fromJson constructor

FixedOrPercent.fromJson(
  1. Map json_
)

Implementation

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