PolicyPasswordRotation.fromMap constructor

PolicyPasswordRotation.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory PolicyPasswordRotation.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    '\$id': "",
    'enabled': false,
    'maxAge': 31536000,
    ...map,
  };

  return PolicyPasswordRotation(
    $id: map['\$id'].toString(),
    enabled: map['enabled'],
    maxAge: map['maxAge'],
  );
}