toJson method

String toJson()

dart:convert

Converts User to a JSON string.

Implementation

String toJson() => json.encode(toMap());