Liveliness.fromMap constructor

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

Implementation

factory Liveliness.fromMap(Map<String, dynamic> map) {
  return Liveliness(
    message: map['message'] ?? '',
    direction: map['direction'] ?? '',
    isSuccess: map['isSuccess'] ?? false,
  );
}