factory ProductCode.fromJson(Map<String, dynamic> json) { return ProductCode( code: json['code'] as String?, productType: json['productType'] as String?, ); }