ChatPosition.fromJson constructor

ChatPosition.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory ChatPosition.fromJson(Map<String, dynamic> json) => ChatPosition(
      list: ChatList.fromJson(json['list']),
      order: int.parse(json['order']),
      isPinned: json['is_pinned'],
      source:
          json['source'] == null ? null : ChatSource.fromJson(json['source']),
    );