AffineTransform.fromJson constructor

AffineTransform.fromJson(
  1. Map json_
)

Implementation

AffineTransform.fromJson(core.Map json_)
    : this(
        scaleX: json_.containsKey('scaleX')
            ? (json_['scaleX'] as core.num).toDouble()
            : null,
        scaleY: json_.containsKey('scaleY')
            ? (json_['scaleY'] as core.num).toDouble()
            : null,
        shearX: json_.containsKey('shearX')
            ? (json_['shearX'] as core.num).toDouble()
            : null,
        shearY: json_.containsKey('shearY')
            ? (json_['shearY'] as core.num).toDouble()
            : null,
        translateX: json_.containsKey('translateX')
            ? (json_['translateX'] as core.num).toDouble()
            : null,
        translateY: json_.containsKey('translateY')
            ? (json_['translateY'] as core.num).toDouble()
            : null,
        unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
      );