toObject method

String toObject (
  1. {List list}
)

Implementation

String toObject({List<dynamic> list}) {
  return '$this: { type: Object, properties : ${list.toList().toString().replaceFirst('[', "{").replaceFirst('[', "}")}  }}';
}