$RgbColor.fromJson constructor

$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,
      );