IMCommand.fromJson constructor

IMCommand.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory IMCommand.fromJson(Map<String, dynamic> data) {
  return IMCommand(
    action: data['action'],
    module: data['module'],
    from: data['from']?.toString(),
    to: data['to']?.toString(),
    timestamp: data['timestamp'],
  );
}