Price.fromJson constructor

Price.fromJson(
  1. Map json_
)

Implementation

Price.fromJson(core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? json_['amount'] as core.String
            : null,
        currency: json_.containsKey('currency')
            ? json_['currency'] as core.String
            : null,
      );