PositionedObject.fromJson constructor

PositionedObject.fromJson(
  1. Map json_
)

Implementation

PositionedObject.fromJson(core.Map json_)
    : this(
        objectId: json_.containsKey('objectId')
            ? json_['objectId'] as core.String
            : null,
        positionedObjectProperties:
            json_.containsKey('positionedObjectProperties')
                ? PositionedObjectProperties.fromJson(
                    json_['positionedObjectProperties']
                        as core.Map<core.String, core.dynamic>)
                : null,
        suggestedDeletionIds: json_.containsKey('suggestedDeletionIds')
            ? (json_['suggestedDeletionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        suggestedInsertionId: json_.containsKey('suggestedInsertionId')
            ? json_['suggestedInsertionId'] as core.String
            : null,
        suggestedPositionedObjectPropertiesChanges:
            json_.containsKey('suggestedPositionedObjectPropertiesChanges')
                ? (json_['suggestedPositionedObjectPropertiesChanges']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      SuggestedPositionedObjectProperties.fromJson(
                          value as core.Map<core.String, core.dynamic>),
                    ),
                  )
                : null,
      );