toJson creates a JSON object from the current Display object.
String toJson() => json.encode(toMap());