GradeHistory.fromJson constructor

GradeHistory.fromJson(
  1. Map json_
)

Implementation

GradeHistory.fromJson(core.Map json_)
    : this(
        actorUserId: json_.containsKey('actorUserId')
            ? json_['actorUserId'] as core.String
            : null,
        gradeChangeType: json_.containsKey('gradeChangeType')
            ? json_['gradeChangeType'] as core.String
            : null,
        gradeTimestamp: json_.containsKey('gradeTimestamp')
            ? json_['gradeTimestamp'] as core.String
            : null,
        maxPoints: json_.containsKey('maxPoints')
            ? (json_['maxPoints'] as core.num).toDouble()
            : null,
        pointsEarned: json_.containsKey('pointsEarned')
            ? (json_['pointsEarned'] as core.num).toDouble()
            : null,
      );