JsonFile<T>

Namespace: uModIO

Assembly: uMod.Core.dll

Inheritance ObjectDataFileJsonFile JsonFile

Implements IDataFile, IDataObject, IDataFile<T>

Summary

Represents a generic json file

Constructors

Name

Summary

JsonFile (String)

Create a new json file

JsonFile (String, Type, T, JsonSerializerSettings)

JsonFile (String, T)

JsonFile (String, T, JsonSerializerSettings)

Properties

Name

Summary

Object

Generic object data

ObjectType

Object type

Methods

Name

Summary

As<TConvert> ()

Converts data file to specified type

Convert (DataFormat)

Convert json file to specified data format

Convert<TDataFile> (DataFormat)

Converts data file to specified data format with data file cast

FromString (String)

Deserialize object from json string

LoadAsync ()

Load json file asynchronously

LoadFile ()

SaveAsync ()

Save json file asynchronously

SaveFile ()

ToAttachment (String)

Converts json file to file attachment

ToString ()

Serialize object to json string