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'],
      primaryTextColor = json['primaryTextColor'],
      multiThread = json['multiThread'],
      multiChannelConversationEnabled = json['multiChannelConversationEnabled'],
      callsEnabled = json['callsEnabled'],
      themeNames = json['themeNames'].cast<String>(),
      attachmentConfig = json['attachmentConfig'] != null
          ? WidgetAttachmentConfig.fromJson(json['attachmentConfig'])
          : null;