is Collection Payload Valid

fun isCollectionPayloadValid(color: String, title: String, description: String?): Boolean

Method to validate a payload of collection

Return

whether payload is valid or not as boolean

Parameters

color

: color of the collection

title

Title of the collection

description

: description to check the validity