UserSubject.fromJson constructor

UserSubject.fromJson(
  1. Map<String, dynamic> json
)

Creates a UserSubject from JSON data.

Implementation

factory UserSubject.fromJson(Map<String, dynamic> json) {
  final tempNameJson = json['name'];

  final String tempName = tempNameJson;

  return UserSubject(
    name: tempName,
  );
}