The format version json declares (1 when it declares none).
json
static int versionOf(Map json) => readFormatVersion(json, 'formatVersion', kind: 'material', missing: 1);