fromJson method
static fromJson(String widgetType, Map<String, dynamic> json) { throw UnimplementedError('fromJson must be implemented in a sub class'); }