$RgbColor.fromJson constructor Null safety

$RgbColor.fromJson(
  1. Map _json
)

Implementation

$RgbColor.fromJson(core.Map _json)
    : this(
        blue: _json.containsKey('blue')
            ? (_json['blue'] as core.num).toDouble()
            : null,
        green: _json.containsKey('green')
            ? (_json['green'] as core.num).toDouble()
            : null,
        red: _json.containsKey('red')
            ? (_json['red'] as core.num).toDouble()
            : null,
      );