toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'customerId': customerId,
    'title': title,
    'description': description,
    'typeId': typeId,
    if (email != null) 'email': email,
    if (name != null) 'name': name,
    if (metadata != null) 'metadata': metadata,
  };
}