toJson method Null safety

String toJson()

Encodes PlayerRating object to json String

Implementation

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