_decodeProtobuf(buffer) {
    const err = proto.Model.verify(buffer)
    if (err) {
      throw new Error(`[Model] Invalid model - check protobuf serialization: {err}`)
    }
    const model = proto.Model.decode(buffer)
    this.id = model.id
    this.name = model.name
    this.kerasVersion = model.kerasVersion
    this.backend = model.backend
    this.modelConfig = JSON.parse(model.modelConfig)
    this.modelWeights = model.modelWeights
  }
Verifies and decodes binary buffer representing protobuf-serialized model definition file.

@param {Uint8Array|Buffer} buffer