ColorDefinition.fromJson constructor

ColorDefinition.fromJson(
  1. Map json_
)

Implementation

ColorDefinition.fromJson(core.Map json_)
    : this(
        background: json_.containsKey('background')
            ? json_['background'] as core.String
            : null,
        foreground: json_.containsKey('foreground')
            ? json_['foreground'] as core.String
            : null,
      );