ConnectionStatus.fromMap constructor

ConnectionStatus.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ConnectionStatus.fromMap(Map<String, dynamic> map) {
  return ConnectionStatus(
    status: toEnum(map['status'], Status.values) ?? Status.unknown,
  );
}