getPageContentPropertiesById method

Future<ContentProperty> getPageContentPropertiesById({
  1. required int pageId,
  2. required int propertyId,
  3. bool? serializeIdsAsStrings,
})

Retrieves a specific Content Property by ID that is attached to a specified page.

Permissions required: Permission to view the page.

Implementation

Future<ContentProperty> getPageContentPropertiesById(
    {required int pageId,
    required int propertyId,
    bool? serializeIdsAsStrings}) async {
  return ContentProperty.fromJson(await _client.send(
    'get',
    'pages/{page-id}/properties/{property-id}',
    pathParameters: {
      'page-id': '$pageId',
      'property-id': '$propertyId',
    },
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}