SolidFill.fromJson constructor

SolidFill.fromJson(
  1. Map json_
)

Implementation

SolidFill.fromJson(core.Map json_)
    : this(
        alpha: json_.containsKey('alpha')
            ? (json_['alpha'] as core.num).toDouble()
            : null,
        color: json_.containsKey('color')
            ? OpaqueColor.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
      );