ChatBackground.fromJson constructor

ChatBackground.fromJson(
  1. Map<String, dynamic> json
)

Creates a ChatBackground object from JSON.

Implementation

factory ChatBackground.fromJson(Map<String, dynamic> json) {
  return ChatBackground(
    type: BackgroundType.create(json['type']),
  );
}