Page.fromJson constructor
Page.fromJson(
- Map json_
Implementation
Page.fromJson(core.Map json_)
: this(
blocks:
(json_['blocks'] as core.List?)
?.map(
(value) => Block.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
confidence: (json_['confidence'] as core.num?)?.toDouble(),
height: json_['height'] as core.int?,
property:
json_.containsKey('property')
? TextProperty.fromJson(
json_['property'] as core.Map<core.String, core.dynamic>,
)
: null,
width: json_['width'] as core.int?,
);