ThemeSettings.fromMap constructor

ThemeSettings.fromMap(
  1. Map<String, dynamic> map
)

Implementation

ThemeSettings.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  accent_color = map['accent_color'];
  if (map['background'] != null) {
    background = TdApiMap.fromMap(map['background']) as Background;
  }
  if (map['outgoing_message_fill'] != null) {
    outgoing_message_fill = TdApiMap.fromMap(map['outgoing_message_fill']) as BackgroundFill;
  }
  animate_outgoing_message_fill = map['animate_outgoing_message_fill'];
  outgoing_message_accent_color = map['outgoing_message_accent_color'];
}