fromJsonAsT<M> static method

M fromJsonAsT<M>(
  1. dynamic json
)

Implementation

static M fromJsonAsT<M>(json) {
		if (json is List) {
			return _getListChildType<M>(json);
		} else {
			return _fromJsonSingle<M>(json) as M;
		}
	}