toJson method

Map<String, dynamic> toJson()

Method for JSON serialization

Implementation

Map<String, dynamic> toJson() {
  return serialize();
}