registerModelFromJson function
Converts a JSON string into a RegisterModel object.
This function decodes the given JSON string and uses the fromJson constructor
of the RegisterModel class to create an instance.
Parameters:
str - A JSON string representation of a RegisterModel object.
Returns: An instance of RegisterModel populated with data from the given JSON string.
Implementation
RegisterModel registerModelFromJson(String str) =>
RegisterModel.fromJson(json.decode(str));