GoogleCloudDocumentaiV1beta3DocumentStyle.fromJson constructor

GoogleCloudDocumentaiV1beta3DocumentStyle.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta3DocumentStyle.fromJson(core.Map _json)
    : this(
        backgroundColor: _json.containsKey('backgroundColor')
            ? GoogleTypeColor.fromJson(_json['backgroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        color: _json.containsKey('color')
            ? GoogleTypeColor.fromJson(
                _json['color'] as core.Map<core.String, core.dynamic>)
            : null,
        fontSize: _json.containsKey('fontSize')
            ? GoogleCloudDocumentaiV1beta3DocumentStyleFontSize.fromJson(
                _json['fontSize'] as core.Map<core.String, core.dynamic>)
            : null,
        fontWeight: _json.containsKey('fontWeight')
            ? _json['fontWeight'] as core.String
            : null,
        textAnchor: _json.containsKey('textAnchor')
            ? GoogleCloudDocumentaiV1beta3DocumentTextAnchor.fromJson(
                _json['textAnchor'] as core.Map<core.String, core.dynamic>)
            : null,
        textDecoration: _json.containsKey('textDecoration')
            ? _json['textDecoration'] as core.String
            : null,
        textStyle: _json.containsKey('textStyle')
            ? _json['textStyle'] as core.String
            : null,
      );