Price.fromJson constructor

Price.fromJson(
  1. Map json_
)

Implementation

Price.fromJson(core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? Money.fromJson(
                json_['amount'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );