toJ method

Map<String, dynamic> toJ()

Implementation

Map<String, dynamic> toJ() {
  var a = [];
  for (var e in c) {
    a.add(e.toJ());
  }

  int t = 0, l = 0, r = 0, b = 0;
  if (po != null) {
    var w = (po!.top);
    var x = (po!.bottom);
    var y = (po!.left);
    var z = (po!.right);
    t = w.isNaN || w.isInfinite ? 0 : w.toInt();
    b = x.isNaN || x.isInfinite ? 0 : x.toInt();
    l = y.isNaN || y.isInfinite ? 0 : y.toInt();
    r = z.isNaN || z.isInfinite ? 0 : z.toInt();
  }

  return {
    k1: k != null && k!.isNotEmpty ? k : '',
    k2: op != null && op!.isNotEmpty ? op : '',
    k3: objectRuntimeType(e.widget, 'W'),
    k4: {k6: t, k7: b, k8: l, k9: r},
    k5: a
  };
}