ReplaceAllShapesWithImageRequest.fromJson constructor

ReplaceAllShapesWithImageRequest.fromJson(
  1. Map json_
)

Implementation

ReplaceAllShapesWithImageRequest.fromJson(core.Map json_)
    : this(
        containsText: json_.containsKey('containsText')
            ? SubstringMatchCriteria.fromJson(
                json_['containsText'] as core.Map<core.String, core.dynamic>)
            : null,
        imageReplaceMethod: json_.containsKey('imageReplaceMethod')
            ? json_['imageReplaceMethod'] as core.String
            : null,
        imageUrl: json_.containsKey('imageUrl')
            ? json_['imageUrl'] as core.String
            : null,
        pageObjectIds: json_.containsKey('pageObjectIds')
            ? (json_['pageObjectIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        replaceMethod: json_.containsKey('replaceMethod')
            ? json_['replaceMethod'] as core.String
            : null,
      );