DashboardGadget.fromJson constructor
Implementation
factory DashboardGadget.fromJson(Map<String, Object?> json) {
return DashboardGadget(
color: DashboardGadgetColor.fromValue(json[r'color'] as String? ?? ''),
id: (json[r'id'] as num?)?.toInt() ?? 0,
moduleKey: json[r'moduleKey'] as String?,
position: DashboardGadgetPosition.fromJson(
json[r'position'] as Map<String, Object?>? ?? const {}),
title: json[r'title'] as String? ?? '',
uri: json[r'uri'] as String?,
);
}