toJson method

String toJson (
  1. Object object,
  2. [SerializationOptions options = defaultSerializationOptions]
)

Converts Dart object to JSON string

Implementation

static String toJson(Object object,
    [SerializationOptions options = defaultSerializationOptions]) {
  return serialize(object, options);
}