GoogleCloudDocumentaiV1beta2DocumentStyle.fromJson constructor

GoogleCloudDocumentaiV1beta2DocumentStyle.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta2DocumentStyle.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')
            ? GoogleCloudDocumentaiV1beta2DocumentStyleFontSize.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')
            ? GoogleCloudDocumentaiV1beta2DocumentTextAnchor.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,
      );