ServerGroup.fromJson constructor

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

Implementation

factory ServerGroup.fromJson(Map<String, dynamic> json) {
  return ServerGroup(
    name: json['name'] as String?,
    serverGroupId: json['serverGroupId'] as String?,
    serverList: (json['serverList'] as List?)
        ?.whereNotNull()
        .map((e) => Server.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}