OpaqueColor.fromJson constructor

OpaqueColor.fromJson(
  1. Map json_
)

Implementation

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