fromMessages static method

Seen fromMessages(
  1. Map<String, dynamic> msg
)

Implementation

static Seen fromMessages(Map<String, dynamic> msg) {
  return Seen(
    ua: msg['ua'],
    when: msg['when'] != null ? DateTime.parse(msg['when']) : DateTime.now(),
  );
}