Color.fromJson constructor

Color.fromJson(
  1. Map _json
)

Implementation

Color.fromJson(core.Map _json)
    : this(
        brightness: _json.containsKey('brightness')
            ? (_json['brightness'] as core.num).toDouble()
            : null,
        contrast: _json.containsKey('contrast')
            ? (_json['contrast'] as core.num).toDouble()
            : null,
        saturation: _json.containsKey('saturation')
            ? (_json['saturation'] as core.num).toDouble()
            : null,
      );