MessagePositions.fromJson constructor

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

Parse from a json

Implementation

factory MessagePositions.fromJson(Map<String, dynamic> json) => MessagePositions(
  totalCount: json['total_count'],
  positions: List<MessagePosition>.from((json['positions'] ?? []).map((item) => MessagePosition.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);