PayPal\Test\Api\TemplateSettingsTest::getJson PHP Method

getJson() public static method

Gets Json String of Object TemplateSettings
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"field_name":"TestSample","display_preference":' . TemplateSettingsMetadataTest::getJson() . '}';
    }

Usage Example

 /**
  * Gets Json String of Object Template
  * @return string
  */
 public static function getJson()
 {
     return '{"template_id":"TestSample","name":"TestSample","default":true,"template_data":' . TemplateDataTest::getJson() . ',"settings":' . TemplateSettingsTest::getJson() . ',"unit_of_measure":"TestSample","custom":true}';
 }