toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (anonAllowed != null) 'anonAllowed': anonAllowed!,
  if (apiProductName != null) 'apiProductName': apiProductName!,
  if (categoryIds != null) 'categoryIds': categoryIds!,
  if (description != null) 'description': description!,
  if (edgeAPIProductName != null) 'edgeAPIProductName': edgeAPIProductName!,
  if (graphqlEndpointUrl != null) 'graphqlEndpointUrl': graphqlEndpointUrl!,
  if (graphqlSchema != null) 'graphqlSchema': graphqlSchema!,
  if (graphqlSchemaDisplayName != null)
    'graphqlSchemaDisplayName': graphqlSchemaDisplayName!,
  if (id != null) 'id': id!,
  if (imageUrl != null) 'imageUrl': imageUrl!,
  if (modified != null) 'modified': modified!,
  if (published != null) 'published': published!,
  if (requireCallbackUrl != null) 'requireCallbackUrl': requireCallbackUrl!,
  if (siteId != null) 'siteId': siteId!,
  if (specId != null) 'specId': specId!,
  if (title != null) 'title': title!,
  if (visibility != null) 'visibility': visibility!,
};