ScreenableTab.fromJson constructor

ScreenableTab.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ScreenableTab.fromJson(Map<String, Object?> json) {
  return ScreenableTab(
    id: (json[r'id'] as num?)?.toInt(),
    name: json[r'name'] as String? ?? '',
  );
}