factory PressureMetadata.fromJson(Map<String, dynamic> json) { return PressureMetadata( available: json.containsKey('available') ? json['available'] as bool : null, ); }