copyWith method

IdentitySessionResponse copyWith({
  1. DateTime? date,
  2. int? timeStamp,
  3. String? token,
  4. String? userCode,
  5. List<Location>? locations,
  6. Device? device,
  7. List<Sucursale>? sucursales,
  8. Usuario? usuario,
  9. Session? session,
})

Implementation

IdentitySessionResponse copyWith({
  DateTime? date,
  int? timeStamp,
  String? token,
  String? userCode,
  List<Location>? locations,
  Device? device,
  List<Sucursale>? sucursales,
  Usuario? usuario,
  Session? session,
}) =>
    IdentitySessionResponse(
      date: date ?? this.date,
      timeStamp: timeStamp ?? this.timeStamp,
      token: token ?? this.token,
      userCode: userCode ?? this.userCode,
      locations: locations ?? this.locations,
      device: device ?? this.device,
      sucursales: sucursales ?? this.sucursales,
      usuario: usuario ?? this.usuario,
      session: session ?? this.session,
    );