<?php

namespace App\Http\Controllers\Channel\OfficialAccount\Transformers;

class CustomMsgSwitchTransformer
{
    public function transform($customMsgSwitchMsgs){
        return [

            'title'       =>  isset($customMsgSwitchMsgs->customMsgSwitchs->title) ? $customMsgSwitchMsgs->customMsgSwitchs->title : "",
            'custom_category'       =>  isset($customMsgSwitchMsgs->custom_category) ? $customMsgSwitchMsgs->custom_category : "",
            'status'       =>  isset($customMsgSwitchMsgs->status) ? $customMsgSwitchMsgs->status : "",
            'distribution_channel_id'       =>  isset($customMsgSwitchMsgs->distribution_channel_id) ? $customMsgSwitchMsgs->distribution_channel_id : "",
            'id'       =>  isset($customMsgSwitchMsgs->id) ? $customMsgSwitchMsgs->id : "",
        ];
    }
}