M4eTransactionResult.fromJson constructor

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

Implementation

factory M4eTransactionResult.fromJson(Map<String, dynamic> json) {
  return M4eTransactionResult(
    from: UniqueId.fromUniqueString(json['flow']['from']),
    to: UniqueId.fromUniqueString(json['flow']['to']),
    amount: M4eAmount.fromJson(json['flow']['amount']),
    at: DateTimeConverter.fromTimestampSinceEpoch(json['flow']['at']),
    txType: json['txType'],
  );
}