GlassVariantConstants.fromJson constructor
GlassVariantConstants.fromJson(
- Map<
String, Object?> j, - GlassVariantConstants base
Reads keys present in j; missing keys come from base.
Implementation
factory GlassVariantConstants.fromJson(
Map<String, Object?> j,
GlassVariantConstants base,
) => GlassVariantConstants(
blurSigma: GlassJson.number(j, 'blurSigma', base.blurSigma),
blurSizeRef: GlassJson.number(j, 'blurSizeRef', base.blurSizeRef),
frostWideSigma: GlassJson.number(j, 'frostWideSigma', base.frostWideSigma),
frostWideMixEdge: GlassJson.number(
j,
'frostWideMixEdge',
base.frostWideMixEdge,
),
frostWideMixCentre: GlassJson.number(
j,
'frostWideMixCentre',
base.frostWideMixCentre,
),
frostWideSizeRef: GlassJson.number(
j,
'frostWideSizeRef',
base.frostWideSizeRef,
),
frostWideSizeDrop: GlassJson.number(
j,
'frostWideSizeDrop',
base.frostWideSizeDrop,
),
toneKnots: GlassJson.knots(j, 'toneKnots', base.toneKnots),
smallToneKnots: GlassJson.knots(j, 'smallToneKnots', base.smallToneKnots),
smallSizeLo: GlassJson.number(j, 'smallSizeLo', base.smallSizeLo),
smallSizeHi: GlassJson.number(j, 'smallSizeHi', base.smallSizeHi),
postJacobianMax: GlassJson.number(
j,
'postJacobianMax',
base.postJacobianMax,
),
ambientMix: GlassJson.number(j, 'ambientMix', base.ambientMix),
ambientReach: GlassJson.number(j, 'ambientReach', base.ambientReach),
toneLumaMix: GlassJson.number(j, 'toneLumaMix', base.toneLumaMix),
glowStrength: GlassJson.number(j, 'glowStrength', base.glowStrength),
postBlurShare: GlassJson.number(j, 'postBlurShare', base.postBlurShare),
normalRadiusScale: GlassJson.number(
j,
'normalRadiusScale',
base.normalRadiusScale,
),
lensEdge: GlassJson.number(j, 'lensEdge', base.lensEdge),
lensEdgeDecay: GlassJson.number(j, 'lensEdgeDecay', base.lensEdgeDecay),
rimMix: GlassJson.number(j, 'rimMix', base.rimMix),
rimMixWidth: GlassJson.number(j, 'rimMixWidth', base.rimMixWidth),
rimMixCut: GlassJson.number(j, 'rimMixCut', base.rimMixCut),
rimMixLumaFloor: GlassJson.number(
j,
'rimMixLumaFloor',
base.rimMixLumaFloor,
),
toneLift: GlassJson.number(j, 'toneLift', base.toneLift),
blurAspectPower: GlassJson.number(
j,
'blurAspectPower',
base.blurAspectPower,
),
rimBack: GlassJson.number(j, 'rimBack', base.rimBack),
lensVertical: GlassJson.number(j, 'lensVertical', base.lensVertical),
rimTint: GlassJson.number(j, 'rimTint', base.rimTint),
rimHue: GlassJson.number(j, 'rimHue', base.rimHue),
toneLiftKnee: GlassJson.number(j, 'toneLiftKnee', base.toneLiftKnee),
toneLiftSizeRef: GlassJson.number(
j,
'toneLiftSizeRef',
base.toneLiftSizeRef,
),
lensBand: GlassJson.number(j, 'lensBand', base.lensBand),
lensStrength: GlassJson.number(j, 'lensStrength', base.lensStrength),
lensDecay: GlassJson.number(j, 'lensDecay', base.lensDecay),
lensSizeRef: GlassJson.number(j, 'lensSizeRef', base.lensSizeRef),
dispersion: GlassJson.number(j, 'dispersion', base.dispersion),
rimWidth: GlassJson.number(j, 'rimWidth', base.rimWidth),
rimIntensity: GlassJson.number(j, 'rimIntensity', base.rimIntensity),
fillColor: GlassJson.color(j, 'fillColor', base.fillColor),
fillOpacity: GlassJson.number(j, 'fillOpacity', base.fillOpacity),
fillSizeRef: GlassJson.number(j, 'fillSizeRef', base.fillSizeRef),
fillSizeDrop: GlassJson.number(j, 'fillSizeDrop', base.fillSizeDrop),
saturation: GlassJson.number(j, 'saturation', base.saturation),
dim: GlassJson.number(j, 'dim', base.dim),
shadowRadius: GlassJson.number(j, 'shadowRadius', base.shadowRadius),
shadowOpacity: GlassJson.number(j, 'shadowOpacity', base.shadowOpacity),
tintStrength: GlassJson.number(j, 'tintStrength', base.tintStrength),
);