object static method

Tuple2<String, String> object(
  1. String clazz, [
  2. bool nullable = false
])

Implementation

static Tuple2<String, String> object(String clazz, [bool nullable = false]) {
  // String s;
  String d;
  if (nullable) {
    // s = "$ph?.toJson()";
    d = '$ph == null ? null : $clazz.fromJson($ph,)';
  } else {
    // s = "$ph.toJson()";
    d = '$clazz.fromJson($ph,)';
  }
  return Tuple2(ph, d);
}