GoogleCloudDocumentaiV1beta1DocumentStyle.fromJson constructor
GoogleCloudDocumentaiV1beta1DocumentStyle.fromJson(
- Map _json
Implementation
GoogleCloudDocumentaiV1beta1DocumentStyle.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')
? GoogleCloudDocumentaiV1beta1DocumentStyleFontSize.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')
? GoogleCloudDocumentaiV1beta1DocumentTextAnchor.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,
);