clone<T> method

T clone <T>(
  1. T object
)

Clone Dart object of type T

Implementation

static T clone<T>(T object) {
  return fromJson<T>(toJson(object));
}