Shadow.fromJson constructor
Shadow.fromJson(
- Map json_
Implementation
Shadow.fromJson(core.Map json_)
: this(
alignment: json_.containsKey('alignment')
? json_['alignment'] as core.String
: null,
alpha: json_.containsKey('alpha')
? (json_['alpha'] as core.num).toDouble()
: null,
blurRadius: json_.containsKey('blurRadius')
? Dimension.fromJson(
json_['blurRadius'] as core.Map<core.String, core.dynamic>)
: null,
color: json_.containsKey('color')
? OpaqueColor.fromJson(
json_['color'] as core.Map<core.String, core.dynamic>)
: null,
propertyState: json_.containsKey('propertyState')
? json_['propertyState'] as core.String
: null,
rotateWithShape: json_.containsKey('rotateWithShape')
? json_['rotateWithShape'] as core.bool
: null,
transform: json_.containsKey('transform')
? AffineTransform.fromJson(
json_['transform'] as core.Map<core.String, core.dynamic>)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);