UserAvailableEntity.fromJson constructor

UserAvailableEntity.fromJson(
  1. dynamic data
)

Implementation

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