Profile.fromJson constructor

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

Implementation

factory Profile.fromJson(Map<String, dynamic> json) {
  return Profile(
      List<FormInfo>.from(json['forms'].map((e) => FormInfo.fromJson(e))),
      List<ActionInfo>.from(
          json['actions'].map((e) => ActionInfo.fromJson(e))),
      List<CubeInfo>.from(json['cubes'].map((e) => CubeInfo.fromJson(e))),
      List<FolderInfo>.from(
          json['folders'].map((e) => FolderInfo.fromJson(e))),
      List<WidgetInfo>.from(
          json['widgets'].map((e) => WidgetInfo.fromJson(e))),
      List<NotificationBase>.from(
          json['notifications'].map((e) => NotificationBase.fromJson(e))),
      json['notificationsCount'],
      json['conversationsCount'],
      json['inboxCount'],
      List<ContactInfo>.from(
          json['contacts'].map((e) => ContactInfo.fromJson(e))),
      json['userId'],
      json['byId'],
      json['name'],
      json['byName'],
      List<StateInfo>.from(json['states'].map((e) => StateInfo.fromJson(e))),
      List<ControlInfo>.from(
          json['controls'].map((e) => ControlInfo.fromJson(e))),
      LicenseInfo.fromJson(json['license']));
}