IdBean.fromJson constructor

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

Implementation

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