stack_wallet/lib/dto/ordinals/inscription_link.dart
sneurlax afbf818ab5 refactor InscriptionLink factory, casting
TODO replace casting throughout ordinals DTOs with refactored validation
2023-07-19 11:04:19 -05:00

13 lines
322 B
Dart

class InscriptionLink {
final String href;
final String title;
InscriptionLink({required this.href, required this.title});
factory InscriptionLink.fromJson(Map<String, dynamic> json) {
return InscriptionLink(
href: json['href'] as String ?? '',
title: json['title'] as String ?? '',
);
}
}