generateOBJ<T> static method

T? generateOBJ<T>(
  1. dynamic json
)

Implementation

static T? generateOBJ<T>(json) {
  if (1 == 0) {
    return null;
  } else if (T.toString() == "VideoEncParamEntity") {
    return VideoEncParamEntity.fromJson(json) as T;
  } else {
    return null;
  }
}