ThemeSettings.fromJson constructor

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

Parse from a json

Implementation

factory ThemeSettings.fromJson(Map<String, dynamic> json) => ThemeSettings(
  accentColor: json['accent_color'],
  background: json['background'] == null ? null : Background.fromJson(json['background']),
  outgoingMessageFill: BackgroundFill.fromJson(json['outgoing_message_fill']),
  animateOutgoingMessageFill: json['animate_outgoing_message_fill'],
  outgoingMessageAccentColor: json['outgoing_message_accent_color'],
);