UpdateStatus.fromMap constructor

UpdateStatus.fromMap(
  1. Map map
)

Implementation

factory UpdateStatus.fromMap(Map<dynamic, dynamic> map) {
  final String type = map['type'];
  final EmpaStatus status = StatusFactory.fromString(map['status']).status;
  return UpdateStatus(type, status);
}