fromJSON method

  1. @override
void fromJSON(
  1. dynamic json
)
override

Implementation

@override
void fromJSON(json) {
  if (json != null) {
    final T model = DataModel.getType(genericType).constructor() as T;
    model.fromJSON(json);
    _value = model;
  }
}