ParagraphStyle.fromJson constructor

ParagraphStyle.fromJson(
  1. Map json_
)

Implementation

ParagraphStyle.fromJson(core.Map json_)
    : this(
        alignment: json_.containsKey('alignment')
            ? json_['alignment'] as core.String
            : null,
        direction: json_.containsKey('direction')
            ? json_['direction'] as core.String
            : null,
        indentEnd: json_.containsKey('indentEnd')
            ? Dimension.fromJson(
                json_['indentEnd'] as core.Map<core.String, core.dynamic>)
            : null,
        indentFirstLine: json_.containsKey('indentFirstLine')
            ? Dimension.fromJson(json_['indentFirstLine']
                as core.Map<core.String, core.dynamic>)
            : null,
        indentStart: json_.containsKey('indentStart')
            ? Dimension.fromJson(
                json_['indentStart'] as core.Map<core.String, core.dynamic>)
            : null,
        lineSpacing: json_.containsKey('lineSpacing')
            ? (json_['lineSpacing'] as core.num).toDouble()
            : null,
        spaceAbove: json_.containsKey('spaceAbove')
            ? Dimension.fromJson(
                json_['spaceAbove'] as core.Map<core.String, core.dynamic>)
            : null,
        spaceBelow: json_.containsKey('spaceBelow')
            ? Dimension.fromJson(
                json_['spaceBelow'] as core.Map<core.String, core.dynamic>)
            : null,
        spacingMode: json_.containsKey('spacingMode')
            ? json_['spacingMode'] as core.String
            : null,
      );