Page.fromJson constructor

Page.fromJson(
  1. Map json_
)

Implementation

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