fromJson static method

PaymentOption? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static PaymentOption? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PaymentOption(
    title: (json['title'] as String?) ?? '',
    url: (json['url'] as String?) ?? '',
  );
}