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