TreasuryFinancialAccountsResourceTogglesSettingStatusDetails.fromJson constructor

TreasuryFinancialAccountsResourceTogglesSettingStatusDetails.fromJson(
  1. Object? json
)

Implementation

factory TreasuryFinancialAccountsResourceTogglesSettingStatusDetails.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryFinancialAccountsResourceTogglesSettingStatusDetails(
    code: TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode
        .fromJson(map['code']),
    resolution: map['resolution'] == null
        ? null
        : TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsResolution
            .fromJson(map['resolution']),
    restriction: map['restriction'] == null
        ? null
        : TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsRestriction
            .fromJson(map['restriction']),
  );
}