Liveness.fromMap constructor

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

Implementation

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