toJson method

String toJson()

dart:convert

Converts ChaptersModel to a JSON string.

Implementation

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