fromJson static method
Implementation
static StarTransaction? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return StarTransaction(
id: (json['id'] as String?) ?? '',
starAmount:
StarAmount.fromJson(json['star_amount'] as Map<String, dynamic>?)!,
isRefund: (json['is_refund'] as bool?) ?? false,
date: (json['date'] as int?) ?? 0,
type:
StarTransactionType.fromJson(json['type'] as Map<String, dynamic>?)!,
);
}