EffectsSpec.fromJson constructor

EffectsSpec.fromJson(
  1. Object? json
)

Implementation

factory EffectsSpec.fromJson(Object? json) {
  final j = _map(json, 'EffectsSpec');
  return EffectsSpec(
    kind: _enumByName(EffectKind.values, j['kind'], 'effect'),
    intensityPermille: _int(j, 'intensityPermille'),
    color: argbFromHex(j['color']),
    densityPermille: _int(j, 'densityPermille'),
  );
}