MergedMessage.fromMap constructor

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

Implementation

factory MergedMessage.fromMap(Map<String, dynamic> map) {
  return MergedMessage(
    sessionId: map['sessionId'],
    sessionName: map['sessionName'],
    url: map['url'],
    md5: map['md5'],
    depth: map['depth'],
    abstracts: (map['abstracts'] as List)
        .map((e) =>
            MergeMessageAbstract.fromMap((e as Map).cast<String, dynamic>()))
        .toList(),
  );
}