AccountSessionPayoutsFeatures.fromJson constructor

AccountSessionPayoutsFeatures.fromJson(
  1. Object? json
)

Implementation

factory AccountSessionPayoutsFeatures.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountSessionPayoutsFeatures(
    editPayoutSchedule: map['edit_payout_schedule'] == null
        ? null
        : (map['edit_payout_schedule'] as bool),
    instantPayouts: map['instant_payouts'] == null
        ? null
        : (map['instant_payouts'] as bool),
    standardPayouts: map['standard_payouts'] == null
        ? null
        : (map['standard_payouts'] as bool),
  );
}