ColorStyle.fromJson constructor

ColorStyle.fromJson(
  1. Map json_
)

Implementation

ColorStyle.fromJson(core.Map json_)
    : this(
        rgbColor: json_.containsKey('rgbColor')
            ? Color.fromJson(
                json_['rgbColor'] as core.Map<core.String, core.dynamic>)
            : null,
        themeColor: json_.containsKey('themeColor')
            ? json_['themeColor'] as core.String
            : null,
      );