Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels.fromJson constructor

Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels.fromJson(
    Map<String, dynamic> json) {
  final l$id = json['id'];
  final l$rank = json['rank'];
  final l$color = json['color'];
  final l$period = json['period'];
  final l$createdAt = json['createdAt'];
  final l$updatedAt = json['updatedAt'];
  final l$lossAmount = json['lossAmount'];
  final l$lossPoints = json['lossPoints'];
  final l$nextLevelMax = json['nextLevelMax'];
  final l$turnoverPoints = json['turnoverPoints'];
  final l$inactivityCycle = json['inactivityCycle'];
  final l$reputationLevel = json['reputationLevel'];
  final l$picture = json['picture'];
  final l$perks = json['perks'];
  final l$levelInterval = json['levelInterval'];
  final l$$__typename = json['__typename'];
  return Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels(
    id: (l$id as String),
    rank: (l$rank as int?),
    color: (l$color as String?),
    period: (l$period as int?),
    createdAt: dateTimeFromJson(l$createdAt),
    updatedAt: dateTimeFromJson(l$updatedAt),
    lossAmount: (l$lossAmount as int?),
    lossPoints: (l$lossPoints as int?),
    nextLevelMax: (l$nextLevelMax as int?),
    turnoverPoints: (l$turnoverPoints as int?),
    inactivityCycle: (l$inactivityCycle as int?),
    reputationLevel: (l$reputationLevel as String?),
    picture: l$picture == null
        ? null
        : Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels$picture
            .fromJson((l$picture as Map<String, dynamic>)),
    perks: l$perks == null
        ? null
        : Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels$perks
            .fromJson((l$perks as Map<String, dynamic>)),
    levelInterval: l$levelInterval == null
        ? null
        : Query$getUserWalletWithReputations$getUserWalletWithReputations$reputationLevels$levelInterval
            .fromJson((l$levelInterval as Map<String, dynamic>)),
    $__typename: (l$$__typename as String),
  );
}