WidgetInfo.fromJson constructor

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

Implementation

WidgetInfo.fromJson(Map<String, dynamic> json)
    : id = json['id'],
      title = json['title'],
      primaryColor = json['primaryColor'],
      backgroundColor = json['backgroundColor'],
      maxUploadContentSize = json['maxUploadContentSize'],
      multiThread = json['multiThread'],
      multiChannelConversationEnabled = json['multiChannelConversationEnabled'],
      callsEnabled = json['callsEnabled'],
      themeNames = json['themeNames'].cast<String>();