NotificationUser.fromMap constructor

NotificationUser.fromMap(
  1. Map<String, dynamic>? json
)

Implementation

NotificationUser.fromMap(Map<String, dynamic>? json) {
  if (json != null) {
    id = json['_id'];
    username = json['username'];
    name = json['name'];
  }
}