title: What does @override toString method do in a Flutter Dart class?
body: <p>In the following model class, what purpose does overriding the <code>toString()</code> method achieve?</p>
  <pre><code>class User {
    final int id;
    String name, email, token;
  
    User(this.id, this.name, this.email, this.token);
  
    User.fromJson(dynamic json) : this.id = json['id'] {
      this.name = json['name'];
      this.email = json['email'];
      this.token = json['token'];
    }
  
    dynamic toJson() =&gt; {'id': id, 'name': name, 'email': email, 'token': token};
  
    @override
    String toString() {
      return toJson().toString();
    }
  }
  </code></pre>