CreateSlideRequest.fromJson constructor

CreateSlideRequest.fromJson(
  1. Map json_
)

Implementation

CreateSlideRequest.fromJson(core.Map json_)
    : this(
        insertionIndex: json_.containsKey('insertionIndex')
            ? json_['insertionIndex'] as core.int
            : null,
        objectId: json_.containsKey('objectId')
            ? json_['objectId'] as core.String
            : null,
        placeholderIdMappings: json_.containsKey('placeholderIdMappings')
            ? (json_['placeholderIdMappings'] as core.List)
                .map((value) => LayoutPlaceholderIdMapping.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        slideLayoutReference: json_.containsKey('slideLayoutReference')
            ? LayoutReference.fromJson(json_['slideLayoutReference']
                as core.Map<core.String, core.dynamic>)
            : null,
      );