GlassMotionConstants.fromJson constructor

GlassMotionConstants.fromJson(
  1. Map<String, Object?> j,
  2. GlassMotionConstants base
)

Reads keys present in j; missing keys come from base.

Implementation

factory GlassMotionConstants.fromJson(
  Map<String, Object?> j,
  GlassMotionConstants base,
) => GlassMotionConstants(
  pressGrowthArea: GlassJson.number(
    j,
    'pressGrowthArea',
    base.pressGrowthArea,
  ),
  pressScaleMax: GlassJson.number(j, 'pressScaleMax', base.pressScaleMax),
  pressStretch: GlassJson.number(j, 'pressStretch', base.pressStretch),
  glowRadius: GlassJson.number(j, 'glowRadius', base.glowRadius),
  pressResponse: GlassJson.number(j, 'pressResponse', base.pressResponse),
  pressDamping: GlassJson.number(j, 'pressDamping', base.pressDamping),
  releaseResponse: GlassJson.number(
    j,
    'releaseResponse',
    base.releaseResponse,
  ),
  releaseDamping: GlassJson.number(j, 'releaseDamping', base.releaseDamping),
  morphResponse: GlassJson.number(j, 'morphResponse', base.morphResponse),
  morphDamping: GlassJson.number(j, 'morphDamping', base.morphDamping),
  dragStretch: GlassJson.number(j, 'dragStretch', base.dragStretch),
  dragStretchDistance: GlassJson.number(
    j,
    'dragStretchDistance',
    base.dragStretchDistance,
  ),
);