IdOrKeyBean.fromJson constructor

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

Implementation

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