toJson method

Map<String, dynamic> toJson()

Converts a ChatBackground object to JSON.

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type.toJson(),
  };
}