Transaction.fromJson constructor

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

Implementation

factory Transaction.fromJson(Map<String, dynamic> json) => Transaction(
      value: Value.fromJson(json["value"]),
      properties: json["properties"],
      id: json["_id"],
      walletId: json["walletId"],
      type: json["type"],
      status: json["status"],
      rewardType: json["rewardType"],
      note: json["note"],
      createdAt: DateTime.parse(json["createdAt"]),
      updatedAt: DateTime.parse(json["updatedAt"]),
      v: json["__v"],
    );