FiscalIntentResult.fromJson constructor
FiscalIntentResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FiscalIntentResult.fromJson(Map<String, dynamic> json) {
return FiscalIntentResult(
intentId: json['intent_id'] as String? ?? '',
status: FiscalStatus.parse(json['status'] as String?),
blockedReason: json['blocked_reason'] as String?,
numbers: (json['numbers'] as Map<String, dynamic>?)
?.map((k, v) => MapEntry(k, (v as num).toInt())),
sealedAt: json['sealed_at'] != null
? DateTime.tryParse(json['sealed_at'] as String)
: null,
certification: json['certification'] as Map<String, dynamic>?,
);
}