registerFromJson method

dynamic registerFromJson (Function fromJsonFunction)
inherited

Use this method to register a custom fromJson function for this class in the FromJsonFactory.

Implementation

registerFromJson(Function fromJsonFunction) =>
    FromJsonFactory.registerFromJsonFunction(this.runtimeType.toString(), fromJsonFunction);