toJson method

Map<String, dynamic> toJson()

Kept for backward compatibility; delegates to toMap.

Implementation

Map<String, dynamic> toJson() => toMap();