copyWith method

JsonKeyUser copyWith({
  1. String? id,
  2. String? firstName,
  3. String? lastName,
  4. bool? active,
})

Implementation

JsonKeyUser copyWith({
  String? id,
  String? firstName,
  String? lastName,
  bool? active,
}) {
  return JsonKeyUser(
    id: id ?? this.id,
    firstName: firstName ?? this.firstName,
    lastName: lastName ?? this.lastName,
    active: active ?? this.active,
  );
}