ThemeColorPair.fromJson constructor

ThemeColorPair.fromJson(
  1. Map json_
)

Implementation

ThemeColorPair.fromJson(core.Map json_)
    : this(
        color: json_.containsKey('color')
            ? RgbColor.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );