toJson method

String toJson()

Encodes Player object to json String

Implementation

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