fromJson static method

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

Implementation

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

  return AccountTtl(days: (json['days'] as int?) ?? 0);
}