AnalyticWidget.fromJson constructor

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

Implementation

AnalyticWidget.fromJson(Map<String, dynamic> json)
    : this.id = json['id'].toString(),
      this.title = ifNullReturnEmpty(json['title']),
      this.model = ifNullReturnEmpty(json['model']),
      this.options = ChartOptions.fromJson(json),
      this.adminId = ifNullReturnEmpty(json['admin_id']);