Server.fromJson constructor

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

Creates a Server instance from a JSON map

Implementation

factory Server.fromJson(Map<String, dynamic> json) {
  return Server(
    url: json['url'] as String,
    description: json['description'] as String?,
  );
}