buildToString method
Implementation
Future<void> buildToString(ClassDeclaration clazz, MemberDeclarationBuilder builder) async {
builder.declareInType(DeclarationCode.fromString(asCode("""
/// Converts the [${clazz.identifier.name}] object to a map string.
@override
String toString() => "${clazz.identifier.name}(\${toMap()})";
""")));
}