ChatTheme.fromJson constructor

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

Parse from a json

Implementation

factory ChatTheme.fromJson(Map<String, dynamic> json) => ChatTheme(
  name: json['name'],
  lightSettings: ThemeSettings.fromJson(json['light_settings']),
  darkSettings: ThemeSettings.fromJson(json['dark_settings']),
);