factory PubCredModel.fromJson(Map<String, dynamic> json) => PubCredModel( type: json["type"], alg: int.parse(json["alg"].toString()), );