PaymentMethodDetailsCardPresentOffline.fromJson constructor

PaymentMethodDetailsCardPresentOffline.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsCardPresentOffline.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsCardPresentOffline(
      storedAt: map['stored_at'] == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(
              (map['stored_at'] as int).toInt()));
}