Teacher.fromJson constructor

Teacher.fromJson(
  1. Map json_
)

Implementation

Teacher.fromJson(core.Map json_)
  : this(
      courseId: json_['courseId'] as core.String?,
      profile: json_.containsKey('profile')
          ? UserProfile.fromJson(
              json_['profile'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      userId: json_['userId'] as core.String?,
    );