AttachmentMenuBotColor.fromJson constructor

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

Parses a AttachmentMenuBotColor from TDLib JSON.

Implementation

factory AttachmentMenuBotColor.fromJson(Map<String, dynamic> json) =>
    AttachmentMenuBotColor(
      lightColor: _readInt(json['light_color']),
      darkColor: _readInt(json['dark_color']),
    );