Those are not good diagrams. Resonance structures should not be drawn with dotted lines for partial bonds - you may represent the molecule itself (the combination of resonance structures) like that. Resonance structures should be conventionally-bonded structures. Thus the structure on the left should have a double bond to the left and a single bond (and negatively charged O) to the right, and vice versa for the right-hand structure. The resulting molecule is symmetrical with an average bond order of 1.5 - but that is not a resonance structure.