Converts this ANN to an encoded JSON.
String toJson({bool withIndent = true}) => encodeJSON(toJsonMap(), withIndent: withIndent);