AccountTreasurySettings.fromJson constructor

AccountTreasurySettings.fromJson(
  1. Object? json
)

Implementation

factory AccountTreasurySettings.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountTreasurySettings(
      tosAcceptance: map['tos_acceptance'] == null
          ? null
          : AccountTermsOfService.fromJson(map['tos_acceptance']));
}