registerModelToJson function

String registerModelToJson(
  1. RegisterModel data
)

Converts a RegisterModel object into a JSON string.

This function takes a RegisterModel object, converts it to a map using the toJson method, and then encodes the map as a JSON string.

Parameters: data - A RegisterModel object.

Returns: A JSON string representing the register model.

Implementation

String registerModelToJson(RegisterModel data) => json.encode(data.toJson());