toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (availableEndTime != null) 'availableEndTime': availableEndTime!,
      if (availableStartTime != null)
        'availableStartTime': availableStartTime!,
      if (createTime != null) 'createTime': createTime!,
      if (creatorContacts != null)
        'creatorContacts':
            creatorContacts!.map((value) => value.toJson()).toList(),
      if (displayName != null) 'displayName': displayName!,
      if (hasCreatorSignedOff != null)
        'hasCreatorSignedOff': hasCreatorSignedOff!,
      if (productId != null) 'productId': productId!,
      if (productRevision != null) 'productRevision': productRevision!,
      if (publisherProfileId != null)
        'publisherProfileId': publisherProfileId!,
      if (seller != null) 'seller': seller!.toJson(),
      if (syndicationProduct != null)
        'syndicationProduct': syndicationProduct!,
      if (targetingCriterion != null)
        'targetingCriterion':
            targetingCriterion!.map((value) => value.toJson()).toList(),
      if (terms != null) 'terms': terms!.toJson(),
      if (updateTime != null) 'updateTime': updateTime!,
      if (webPropertyCode != null) 'webPropertyCode': webPropertyCode!,
    };