CreativeAssetSelection.fromJson constructor

CreativeAssetSelection.fromJson(
  1. Map json_
)

Implementation

CreativeAssetSelection.fromJson(core.Map json_)
    : this(
        defaultAssetId: json_.containsKey('defaultAssetId')
            ? json_['defaultAssetId'] as core.String
            : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => Rule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );