Autofit.fromJson constructor

Autofit.fromJson(
  1. Map json_
)

Implementation

Autofit.fromJson(core.Map json_)
    : this(
        autofitType: json_.containsKey('autofitType')
            ? json_['autofitType'] as core.String
            : null,
        fontScale: json_.containsKey('fontScale')
            ? (json_['fontScale'] as core.num).toDouble()
            : null,
        lineSpacingReduction: json_.containsKey('lineSpacingReduction')
            ? (json_['lineSpacingReduction'] as core.num).toDouble()
            : null,
      );