Payment.fromJson constructor

Payment.fromJson(
  1. Map json_
)

Implementation

Payment.fromJson(core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? json_['amount'] as core.String
            : null,
        date: json_.containsKey('date')
            ? Date.fromJson(
                json_['date'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );