GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.fromJson constructor

GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.fromJson(core.Map json_)
    : this(
        backgroundColor: json_.containsKey('backgroundColor')
            ? GoogleTypeColor.fromJson(json_['backgroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        bold: json_['bold'] as core.bool?,
        fontSize: json_['fontSize'] as core.int?,
        fontType: json_['fontType'] as core.String?,
        fontWeight: json_['fontWeight'] as core.int?,
        handwritten: json_['handwritten'] as core.bool?,
        italic: json_['italic'] as core.bool?,
        letterSpacing: (json_['letterSpacing'] as core.num?)?.toDouble(),
        pixelFontSize: (json_['pixelFontSize'] as core.num?)?.toDouble(),
        smallcaps: json_['smallcaps'] as core.bool?,
        strikeout: json_['strikeout'] as core.bool?,
        subscript: json_['subscript'] as core.bool?,
        superscript: json_['superscript'] as core.bool?,
        textColor: json_.containsKey('textColor')
            ? GoogleTypeColor.fromJson(
                json_['textColor'] as core.Map<core.String, core.dynamic>)
            : null,
        underlined: json_['underlined'] as core.bool?,
      );