toJson method

String toJson()

Implementation

String toJson() {
  return GameObjectMapper.ensureInitialized().encodeJson<GameObject>(
    this as GameObject,
  );
}