Shape.fromJson constructor

Shape.fromJson(
  1. Map json_
)

Implementation

Shape.fromJson(core.Map json_)
  : this(
      placeholder:
          json_.containsKey('placeholder')
              ? Placeholder.fromJson(
                json_['placeholder'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      shapeProperties:
          json_.containsKey('shapeProperties')
              ? ShapeProperties.fromJson(
                json_['shapeProperties']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      shapeType: json_['shapeType'] as core.String?,
      text:
          json_.containsKey('text')
              ? TextContent.fromJson(
                json_['text'] as core.Map<core.String, core.dynamic>,
              )
              : null,
    );