EmbeddedObject.fromJson constructor

EmbeddedObject.fromJson(
  1. Map json_
)

Implementation

EmbeddedObject.fromJson(core.Map json_)
  : this(
      description: json_['description'] as core.String?,
      embeddedDrawingProperties:
          json_.containsKey('embeddedDrawingProperties')
              ? EmbeddedDrawingProperties.fromJson(
                json_['embeddedDrawingProperties']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      embeddedObjectBorder:
          json_.containsKey('embeddedObjectBorder')
              ? EmbeddedObjectBorder.fromJson(
                json_['embeddedObjectBorder']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      imageProperties:
          json_.containsKey('imageProperties')
              ? ImageProperties.fromJson(
                json_['imageProperties']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      linkedContentReference:
          json_.containsKey('linkedContentReference')
              ? LinkedContentReference.fromJson(
                json_['linkedContentReference']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      marginBottom:
          json_.containsKey('marginBottom')
              ? Dimension.fromJson(
                json_['marginBottom'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      marginLeft:
          json_.containsKey('marginLeft')
              ? Dimension.fromJson(
                json_['marginLeft'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      marginRight:
          json_.containsKey('marginRight')
              ? Dimension.fromJson(
                json_['marginRight'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      marginTop:
          json_.containsKey('marginTop')
              ? Dimension.fromJson(
                json_['marginTop'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      size:
          json_.containsKey('size')
              ? Size.fromJson(
                json_['size'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      title: json_['title'] as core.String?,
    );