OrderRefund.fromJson constructor

OrderRefund.fromJson(
  1. Map json_
)

Implementation

OrderRefund.fromJson(core.Map json_)
    : this(
        actor:
            json_.containsKey('actor') ? json_['actor'] as core.String : null,
        amount: json_.containsKey('amount')
            ? Price.fromJson(
                json_['amount'] as core.Map<core.String, core.dynamic>)
            : null,
        creationDate: json_.containsKey('creationDate')
            ? json_['creationDate'] as core.String
            : null,
        reason: json_.containsKey('reason')
            ? json_['reason'] as core.String
            : null,
        reasonText: json_.containsKey('reasonText')
            ? json_['reasonText'] as core.String
            : null,
      );