UserStatusEntity.fromJson constructor

UserStatusEntity.fromJson(
  1. dynamic data
)

Implementation

UserStatusEntity.fromJson(data) : super.fromJson(data) {
  Map<String, dynamic> json =
      data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
  userId = json['userId'];
}