generate method
Implementation
@override
String generate(List<ClassMember> members) {
return '''
String toJson() => json.encode(toMap());
static $className? fromJson(String data) => $className.fromMap(json.decode(data));
''';
}
@override
String generate(List<ClassMember> members) {
return '''
String toJson() => json.encode(toMap());
static $className? fromJson(String data) => $className.fromMap(json.decode(data));
''';
}