KeyLightOptions.fromJSON constructor

KeyLightOptions.fromJSON(
  1. dynamic json
)

Implementation

KeyLightOptions.fromJSON(dynamic json)
    : assert(json is Map),
      number = json['numberOfLights'],
      lights = (json['lights'] as Iterable).map(
        (dynamic json) => KeyLightOption._fromJSON(json),
      );