
/// Data Transfer Object
/// - 只負責資料傳輸 / 解析
/// - 結構可變
/// - 可以依賴 JSON / platform
class {{sdk_class}}PermissionStatusDto {
  final bool granted;
  final bool permanentlyDenied;
  final String? grantedAt; // 通常是 raw string

  {{sdk_class}}PermissionStatusDto({
    required this.granted,
    required this.permanentlyDenied,
    this.grantedAt,
  });

  factory {{sdk_class}}PermissionStatusDto.fromJson(
    Map<String, dynamic> json,
  ) {
    return {{sdk_class}}PermissionStatusDto(
      granted: json['granted'] as bool,
      permanentlyDenied: json['permanentlyDenied'] as bool,
      grantedAt: json['grantedAt'] as String?,
    );
  }
}
