Server.fromJson constructor Null safety

Server.fromJson(
  1. Map<String, dynamic> json
)

Alternate constructor that creates an Server from a json.

Params:

  • json: contains the source for instance creation.

Implementation

factory Server.fromJson(Map<String, dynamic> json) {
  return ServerImpl.fromJson(json);
}