idFromJson function
Implementation
int idFromJson(value) {
if (value is String) {
return int.tryParse(value) ?? 0;
}
return value;
}
int idFromJson(value) {
if (value is String) {
return int.tryParse(value) ?? 0;
}
return value;
}