Value.fromJson constructor

Value.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Value.fromJson(Map<String, Object?> json) =>
    Value(amount: (json["amount"] as num).toInt());