M4eTransactionLog.fromJson constructor

M4eTransactionLog.fromJson(Map<String, dynamic> json)

Implementation

factory M4eTransactionLog.fromJson(Map<String, dynamic> json) {
  return M4eTransactionLog(
    from: M4eWallet.fromJson(json['flow']['from']),
    to: M4eWallet.fromJson(json['flow']['to']),
    amount: M4eAmount.fromJson(json['flow']['amount']),
    at: DateTimeConverter.fromTimestampSinceEpoch(json['flow']['at']),
    type: M4eTransactionType.parse(json['txType']),
  );
}