fromJson static method

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

Implementation

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

  return StarTransactions(
    starAmount: StarAmount.fromJson(tdMapFromJson(json['star_amount'])),
    transactions: List<StarTransaction>.from(
      tdListFromJson(json['transactions'])
          .map((item) => StarTransaction.fromJson(tdMapFromJson(item)))
          .whereType<StarTransaction>(),
    ),
    nextOffset: (json['next_offset'] as String?) ?? '',
  );
}