ThemeColorPair.fromJson constructor

ThemeColorPair.fromJson(
  1. Map json_
)

Implementation

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